From d421baccf09f7a6d71ea17b9057bd10140d4756a Mon Sep 17 00:00:00 2001 From: Marius Mutu Date: Thu, 20 Nov 2025 00:57:43 +0200 Subject: [PATCH] Remove IdGestiune parameter and update IdPol example value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- api/database-scripts/06_pack_import_comenzi.pck | 2 -- vfp/settings.ini.example | 2 +- vfp/sync-comenzi-web.prg | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) 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