Remove IdGestiune parameter and update IdPol example value
Changes: - Remove p_id_gestiune parameter from PACK_IMPORT_COMENZI.importa_comanda signature (both package spec and body) - Update VFP sync-comenzi-web.prg to remove ?goSettings.IdGestiune from Oracle call - Update settings.ini.example with IdPol=39 as example value Simplified order import: IdGestiune is no longer needed as a configurable parameter. Orders now use only IdPol and IdSectie. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,6 @@ CREATE OR REPLACE PACKAGE PACK_IMPORT_COMENZI AS
|
|||||||
p_id_adresa_livrare IN NUMBER DEFAULT NULL,
|
p_id_adresa_livrare IN NUMBER DEFAULT NULL,
|
||||||
p_id_adresa_facturare IN NUMBER DEFAULT NULL,
|
p_id_adresa_facturare IN NUMBER DEFAULT NULL,
|
||||||
p_id_pol IN NUMBER DEFAULT NULL,
|
p_id_pol IN NUMBER DEFAULT NULL,
|
||||||
p_id_gestiune IN NUMBER DEFAULT NULL,
|
|
||||||
p_id_sectie IN NUMBER DEFAULT NULL,
|
p_id_sectie IN NUMBER DEFAULT NULL,
|
||||||
v_id_comanda OUT NUMBER);
|
v_id_comanda OUT NUMBER);
|
||||||
|
|
||||||
@@ -219,7 +218,6 @@ CREATE OR REPLACE PACKAGE BODY PACK_IMPORT_COMENZI AS
|
|||||||
p_id_adresa_livrare IN NUMBER DEFAULT NULL,
|
p_id_adresa_livrare IN NUMBER DEFAULT NULL,
|
||||||
p_id_adresa_facturare IN NUMBER DEFAULT NULL,
|
p_id_adresa_facturare IN NUMBER DEFAULT NULL,
|
||||||
p_id_pol IN NUMBER DEFAULT NULL,
|
p_id_pol IN NUMBER DEFAULT NULL,
|
||||||
p_id_gestiune IN NUMBER DEFAULT NULL,
|
|
||||||
p_id_sectie IN NUMBER DEFAULT NULL,
|
p_id_sectie IN NUMBER DEFAULT NULL,
|
||||||
v_id_comanda OUT NUMBER) IS
|
v_id_comanda OUT NUMBER) IS
|
||||||
v_data_livrare DATE;
|
v_data_livrare DATE;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ JsonFilePattern=gomag_orders*.json
|
|||||||
AutoRunAdapter=1
|
AutoRunAdapter=1
|
||||||
|
|
||||||
[ROA]
|
[ROA]
|
||||||
IdPol=NULL
|
IdPol=39
|
||||||
IdGestiune=NULL
|
IdGestiune=NULL
|
||||||
IdSectie=NULL
|
IdSectie=NULL
|
||||||
|
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ Function ProcessWebOrder
|
|||||||
|
|
||||||
*-- Apel package Oracle pentru import comanda
|
*-- Apel package Oracle pentru import comanda
|
||||||
If m.llSucces
|
If m.llSucces
|
||||||
lcSQL = "BEGIN PACK_IMPORT_COMENZI.importa_comanda(?lcOrderNumber, ?ldOrderDate, ?lnPartnerID, ?lcArticlesJSON, ?lnIdAdresaLivrare, ?lnIdAdresaFacturare, ?goSettings.IdPol, ?goSettings.IdGestiune, ?goSettings.IdSectie, ?@lnIdComanda); END;"
|
lcSQL = "BEGIN PACK_IMPORT_COMENZI.importa_comanda(?lcOrderNumber, ?ldOrderDate, ?lnPartnerID, ?lcArticlesJSON, ?lnIdAdresaLivrare, ?lnIdAdresaFacturare, ?goSettings.IdPol, ?goSettings.IdSectie, ?@lnIdComanda); END;"
|
||||||
lnResult = SQLExec(goConnectie, lcSQL)
|
lnResult = SQLExec(goConnectie, lcSQL)
|
||||||
|
|
||||||
If lnResult > 0 And Nvl(m.lnIdComanda,0) > 0
|
If lnResult > 0 And Nvl(m.lnIdComanda,0) > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user