payservedb 9.6.1 → 9.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/models/invoice.js +17 -5
package/package.json
CHANGED
package/src/models/invoice.js
CHANGED
|
@@ -362,21 +362,33 @@ const invoiceSchema = new mongoose.Schema(
|
|
|
362
362
|
response: mongoose.Schema.Types.Mixed,
|
|
363
363
|
creditNote: {
|
|
364
364
|
|
|
365
|
-
synced:
|
|
365
|
+
synced: {
|
|
366
|
+
type: Boolean,
|
|
367
|
+
default: false
|
|
368
|
+
},
|
|
369
|
+
|
|
370
|
+
syncedAt: Date,
|
|
366
371
|
|
|
367
372
|
creditNoteId: String,
|
|
368
373
|
|
|
374
|
+
invoiceNumber: String,
|
|
375
|
+
|
|
369
376
|
receiptNumber: String,
|
|
370
377
|
|
|
371
378
|
status: String,
|
|
372
379
|
|
|
373
|
-
|
|
380
|
+
attempts: {
|
|
381
|
+
type: Number,
|
|
382
|
+
default: 0
|
|
383
|
+
},
|
|
384
|
+
|
|
385
|
+
lastAttemptAt: Date,
|
|
374
386
|
|
|
375
|
-
|
|
387
|
+
errorMessage: String,
|
|
376
388
|
|
|
377
|
-
|
|
389
|
+
response: mongoose.Schema.Types.Mixed
|
|
378
390
|
|
|
379
|
-
|
|
391
|
+
}
|
|
380
392
|
},
|
|
381
393
|
// New fields for double entry accounts
|
|
382
394
|
invoiceDoubleEntryAccount: {
|