refactor: rename Batch Number to Batch

This commit is contained in:
18alantom
2023-02-28 11:31:04 +05:30
parent 71aabec935
commit 487f0498a8
35 changed files with 133 additions and 137 deletions
+3 -3
View File
@@ -138,7 +138,7 @@ export class BespokeQueries {
location?: string,
fromDate?: string,
toDate?: string,
batchNumber?: string
batch?: string
): Promise<number | null> {
const query = db.knex!(ModelNameEnum.StockLedgerEntry)
.sum('quantity')
@@ -148,8 +148,8 @@ export class BespokeQueries {
query.andWhere('location', location);
}
if (batchNumber) {
query.andWhere('batchNumber', batchNumber);
if (batch) {
query.andWhere('batch', batch);
}
if (fromDate) {