Change ROA settings defaults to NULL and remove obsolete script
Changes: 1. Update settings.ini.example with [ROA] section using NULL defaults 2. Modify ApplicationSetup.prg to handle NULL values properly: - CreateDefaultIni writes "NULL" string to INI file - LoadSettings converts "NULL" string to VFP .NULL. value 3. Update Oracle package defaults from (0, 1, 2) to (NULL, NULL, NULL): - p_id_pol DEFAULT NULL - p_id_gestiune DEFAULT NULL - p_id_sectie DEFAULT NULL 4. Remove obsolete 02_import_parteneri.sql (replaced by 05_pack_import_parteneri.pck) 5. Update local settings.ini with NULL values Rationale: - NULL is semantically correct (no policy/gestiune/sectie specified) - Previous defaults (0, 1, 2) were invalid IDs in ROA system - Maintains backward compatibility through Oracle DEFAULT NULL 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -30,9 +30,9 @@ CREATE OR REPLACE PACKAGE PACK_IMPORT_COMENZI AS
|
||||
p_json_articole IN CLOB,
|
||||
p_id_adresa_livrare IN NUMBER DEFAULT NULL,
|
||||
p_id_adresa_facturare IN NUMBER DEFAULT NULL,
|
||||
p_id_pol IN NUMBER DEFAULT 0,
|
||||
p_id_gestiune IN NUMBER DEFAULT 1,
|
||||
p_id_sectie IN NUMBER DEFAULT 2,
|
||||
p_id_pol IN NUMBER DEFAULT NULL,
|
||||
p_id_gestiune IN NUMBER DEFAULT NULL,
|
||||
p_id_sectie IN NUMBER DEFAULT NULL,
|
||||
v_id_comanda OUT NUMBER);
|
||||
|
||||
-- Functii pentru managementul erorilor (similar cu PACK_JSON)
|
||||
@@ -218,9 +218,9 @@ CREATE OR REPLACE PACKAGE BODY PACK_IMPORT_COMENZI AS
|
||||
p_json_articole IN CLOB,
|
||||
p_id_adresa_livrare IN NUMBER DEFAULT NULL,
|
||||
p_id_adresa_facturare IN NUMBER DEFAULT NULL,
|
||||
p_id_pol IN NUMBER DEFAULT 0,
|
||||
p_id_gestiune IN NUMBER DEFAULT 1,
|
||||
p_id_sectie IN NUMBER DEFAULT 2,
|
||||
p_id_pol IN NUMBER DEFAULT NULL,
|
||||
p_id_gestiune IN NUMBER DEFAULT NULL,
|
||||
p_id_sectie IN NUMBER DEFAULT NULL,
|
||||
v_id_comanda OUT NUMBER) IS
|
||||
v_data_livrare DATE;
|
||||
v_sku VARCHAR2(100);
|
||||
|
||||
Reference in New Issue
Block a user