feat: multiple payment methods in pos

This commit is contained in:
akshayitzme
2024-12-26 20:08:12 +05:30
parent d37287dd3b
commit 7cbe5c6840
3 changed files with 15 additions and 31 deletions
+1 -4
View File
@@ -402,10 +402,7 @@ export class BespokeQueries {
const sinvNamesQuery = db.knex!(ModelNameEnum.SalesInvoice)
.select('name')
.where('isPOS', true)
.andWhereBetween('date', [
DateTime.fromJSDate(fromDate).toSQLDate(),
DateTime.fromJSDate(toDate).toSQLDate(),
]);
.andWhereBetween('date', [fromDate.toISOString(), toDate.toISOString()]);
if (lastShiftClosingDate) {
sinvNamesQuery.andWhere(