fix: use serial/batch fields for subcontracting receipt and in transit stock entry

(cherry picked from commit 3423334e4f)
This commit is contained in:
Rohit Waghchaure
2024-03-21 20:28:16 +05:30
committed by Mergify
parent bfa316ad09
commit 9ec24bcc6c
8 changed files with 388 additions and 21 deletions

View File

@@ -246,6 +246,8 @@ class DeprecatedBatchNoValuation:
if self.sle.serial_and_batch_bundle:
query = query.where(bundle.name != self.sle.serial_and_batch_bundle)
query = query.where(bundle.voucher_type != "Pick List")
for d in query.run(as_dict=True):
self.non_batchwise_balance_value += flt(d.batch_value)
self.non_batchwise_balance_qty += flt(d.batch_qty)