fix: async issue, transactional deletion cascade

- add db observers
This commit is contained in:
18alantom
2022-05-23 16:18:22 +05:30
parent 104a0fc43f
commit fefc79024d
22 changed files with 283 additions and 160 deletions
+1
View File
@@ -41,6 +41,7 @@ export class BespokeQueries {
.sum({ total: 'baseGrandTotal' })
.sum({ outstanding: 'outstandingAmount' })
.where('submitted', true)
.where('cancelled', false)
.whereBetween('date', [fromDate, toDate])
.first();
}