Merge pull request #49967 from rohitwaghchaure/fixed-batch-qty-for-expired-batches

fix: batch qty for expired batches
This commit is contained in:
rohitwaghchaure
2025-10-08 19:18:06 +05:30
committed by GitHub

View File

@@ -158,7 +158,7 @@ class Batch(Document):
@frappe.whitelist()
def recalculate_batch_qty(self):
batches = get_batch_qty(batch_no=self.name, item_code=self.item)
batches = get_batch_qty(batch_no=self.name, item_code=self.item, for_stock_levels=True)
batch_qty = 0.0
if batches:
for row in batches: