mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update data transformation and validation logic in server routes to allow null values for invoice reference, amount, and due date. This addresses issues where users could not clear these fields and ensures the due date is correctly displayed. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 693eaffa-e5f9-48b1-8bb4-034d4f47e3f4 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/gTQvEeF
207 lines
3.5 KiB
Plaintext
207 lines
3.5 KiB
Plaintext
|
|
|
|
|
|
|
|
GET /api/deliveries 200 in 16975ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 17283ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 17249ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 17353ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 17284ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 17188ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 17045ms
|
|
|
|
🔗 PRODUCTION: getOrder #256 found 1 associated deliveries
|
|
|
|
✅ PRODUCTION: getDelivery #427 found associated order #256 with status: delivered
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
🔄 Updating delivery: {
|
|
|
|
id: 427,
|
|
|
|
|
|
|
|
{
|
|
|
|
blNumber: '197771',
|
|
|
|
blAmount: '695.66',
|
|
|
|
invoiceReference: null,
|
|
|
|
invoiceAmount: null
|
|
|
|
},
|
|
|
|
user: 'admin_local'
|
|
|
|
}
|
|
|
|
GET /api/deliveries 200 in 17076ms
|
|
|
|
✅ Delivery updated successfully: {
|
|
|
|
id: 427,
|
|
|
|
updatedDelivery: {
|
|
|
|
|
|
id: 427,
|
|
|
|
orderId: 256,
|
|
|
|
supplierId: 7,
|
|
|
|
groupId: 1,
|
|
|
|
scheduledDate: '2025-10-31',
|
|
|
|
deliveredDate: 2025-10-31T08:32:15.684Z,
|
|
|
|
quantity: 1,
|
|
|
|
unit: 'palettes',
|
|
|
|
status: 'delivered',
|
|
|
|
notes: null,
|
|
|
|
blNumber: '197771',
|
|
|
|
blAmount: '695.66',
|
|
|
|
invoiceReference: null,
|
|
|
|
invoiceAmount: null,
|
|
|
|
dueDate: null,
|
|
|
|
reconciled: false,
|
|
|
|
validatedAt: null,
|
|
|
|
controlValidated: false,
|
|
|
|
controlValidatedBy: null,
|
|
|
|
controlValidatedAt: null,
|
|
|
|
createdBy: '_1754943032954',
|
|
|
|
createdAt: 2025-10-30T08:47:43.018Z,
|
|
|
|
updatedAt: 2025-11-04T05:51:30.924Z
|
|
|
|
}
|
|
|
|
}
|
|
|
|
PUT /api/deliveries/427 200 in 17189ms
|
|
|
|
Deliveries API called with: {
|
|
|
|
startDate: undefined,
|
|
|
|
endDate: undefined,
|
|
|
|
storeId: '1',
|
|
|
|
withBL: undefined,
|
|
|
|
userRole: 'admin'
|
|
|
|
}
|
|
|
|
🔍 Admin deliveries filtering by store: { storeId: '1', groupIds: [ 1 ], role: 'admin' }
|
|
|
|
Fetching all deliveries
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 200 in 158ms
|
|
|
|
Deliveries API called with: {
|
|
|
|
startDate: undefined,
|
|
|
|
endDate: undefined,
|
|
|
|
storeId: '1',
|
|
|
|
withBL: undefined,
|
|
|
|
userRole: 'admin'
|
|
|
|
}
|
|
|
|
🔍 Admin deliveries filtering by store: { storeId: '1', groupIds: [ 1 ], role: 'admin' }
|
|
|
|
Fetching all deliveries
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 304 in 147ms
|
|
|
|
Deliveries API called with: {
|
|
|
|
startDate: undefined,
|
|
|
|
endDate: undefined,
|
|
|
|
storeId: '1',
|
|
|
|
withBL: undefined,
|
|
|
|
userRole: 'admin'
|
|
|
|
}
|
|
|
|
🔍 Admin deliveries filtering by store: { storeId: '1', groupIds: [ 1 ], role: 'admin' }
|
|
|
|
Fetching all deliveries
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 195 livraisons avec relations
|
|
|
|
Deliveries returned: 195 items
|
|
|
|
GET /api/deliveries 304 in 139ms
|
|
|
|
HEAD /api/health 200 in 1ms
|
|
|