fix: Change status=Completed as observers rule instead of Published

This commit is contained in:
Josepablo C
2025-06-10 21:56:40 -06:00
parent 24a0e1a774
commit 4ea50b0e83
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ const schema = new Schema({
// 3. Enroute Shipments (In Transit)
// 4. Shipments in Unloading (Unloading)
// 5. Shipments pending finding truck
status: { type: String, default: 'Draft', enum: ['Draft', 'Published', 'Completed', 'Closed'] },
status: { type: String, default: 'Draft', enum: ['Draft', 'Published', 'Completed', 'Closed'] },//When completed => Publication is done, awaiting for the load transit to finish (load_status set tot Delivered).
load_status: { type: String, enum: ['Published', 'Loading', 'Transit', 'Downloading', 'Delivered'] },