feat: ajout endpoint /api/commandes-auto avec franco fournisseur
- Nouvelle route GET /api/commandes-auto : propositions par site et fournisseur avec comparaison au franco (franco_atteint, ecart_franco) - Nouvelle route GET /api/commandes-auto/:codefou : détail articles d'un fournisseur - Sync FOUCAD (config commande auto + franco) vers PostgreSQL - Ajout table foucad dans init.sql Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
42f7c9bac6
commit
6e5bc3bc07
4 files changed
+177
-1
No files matched your search
@@ -447,6 +447,20 @@ CREATE TABLE IF NOT EXISTS commande_auto_qtepropo (
|
||||
CREATE INDEX IF NOT EXISTS idx_caqp_art_no_id ON commande_auto_qtepropo (art_no_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_caqp_codesite ON commande_auto_qtepropo (codesite);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS foucad (
|
||||
foucode TEXT PRIMARY KEY,
|
||||
franco NUMERIC(12,2),
|
||||
actif BOOLEAN,
|
||||
duree INTEGER,
|
||||
unite INTEGER,
|
||||
dateref TIMESTAMP,
|
||||
datecom TIMESTAMP,
|
||||
montantcdeauto NUMERIC(12,2),
|
||||
datecdeauto TIMESTAMP,
|
||||
suividatecreation TIMESTAMP,
|
||||
suividatemodif TIMESTAMP
|
||||
);
|
||||
|
||||
-- ============================================================
|
||||
-- Publicités (FBENTPUB + ECOULEMENT + ECOULEMENT_DETAIL SQL Server)
|
||||
-- ============================================================
|
||||
|
||||
Reference in new issue
Block a user