feat: implement provisioning and synchronization logic for procurement tables

This commit is contained in:
Michael committed 2026-03-30 17:59:51 +02:00
1 parent 624d9ab851
commit e629a1c699
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -400,7 +400,7 @@ CREATE TABLE IF NOT EXISTS cdefou_ligne (
no_id BIGINT PRIMARY KEY,
artfou1_no_id BIGINT,
commande_fou_no_id BIGINT,
cdelig INTEGER,
cdelig TEXT,
cdeligtard TIMESTAMP,
cdeligtot TIMESTAMP,
prixbrut NUMERIC(12,4),
+1 -1
View File
@@ -81,7 +81,7 @@ async function syncAppro(force) {
no_id: r.NO_ID,
artfou1_no_id: r.ARTFOU1_NO_ID,
commande_fou_no_id: r.COMMANDE_FOU_NO_ID,
cdelig: r.CDELIG ?? null,
cdelig: safeStr(r.CDELIG),
cdeligtard: r.CDELIGTARD ?? null,
cdeligtot: r.CDELIGTOT ?? null,
prixbrut: r.PRIXBRUT ?? null,