From d41530b65465aec6c2c25924df225e75b7356668 Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Sat, 19 Aug 2023 10:15:58 +0530 Subject: [PATCH] fix: removed extra condition that checks isReturn --- models/inventory/StockTransfer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/inventory/StockTransfer.ts b/models/inventory/StockTransfer.ts index 3cfacbfd..0e2a7c9e 100644 --- a/models/inventory/StockTransfer.ts +++ b/models/inventory/StockTransfer.ts @@ -45,7 +45,7 @@ export abstract class StockTransfer extends Transfer { } get isReturn(): boolean { - return !!this.returnAgainst && this.returnAgainst.length > 1; + return !!this.returnAgainst; } get invoiceSchemaName() {