diff --git a/api/database-scripts/06_pack_import_comenzi.pck b/api/database-scripts/06_pack_import_comenzi.pck index 819c8a2..57664f1 100644 --- a/api/database-scripts/06_pack_import_comenzi.pck +++ b/api/database-scripts/06_pack_import_comenzi.pck @@ -31,7 +31,6 @@ CREATE OR REPLACE PACKAGE PACK_IMPORT_COMENZI AS p_id_adresa_livrare IN NUMBER DEFAULT NULL, p_id_adresa_facturare 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, 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_facturare 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, v_id_comanda OUT NUMBER) IS v_data_livrare DATE; diff --git a/vfp/settings.ini.example b/vfp/settings.ini.example index 9600840..0380db3 100644 --- a/vfp/settings.ini.example +++ b/vfp/settings.ini.example @@ -27,7 +27,7 @@ JsonFilePattern=gomag_orders*.json AutoRunAdapter=1 [ROA] -IdPol=NULL +IdPol=39 IdGestiune=NULL IdSectie=NULL diff --git a/vfp/sync-comenzi-web.prg b/vfp/sync-comenzi-web.prg index b757927..cf5c6a2 100644 --- a/vfp/sync-comenzi-web.prg +++ b/vfp/sync-comenzi-web.prg @@ -283,7 +283,7 @@ Function ProcessWebOrder *-- Apel package Oracle pentru import comanda 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) If lnResult > 0 And Nvl(m.lnIdComanda,0) > 0