mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 14:11:45 +01:00
fix: batch qty for expired batches
(cherry picked from commitff2faf36a7) (cherry picked from commitf4816e4960)
This commit is contained in:
committed by
Mergify
parent
e2e1ac0dba
commit
4e2a42d092
@@ -158,7 +158,7 @@ class Batch(Document):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def recalculate_batch_qty(self):
|
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
|
batch_qty = 0.0
|
||||||
if batches:
|
if batches:
|
||||||
for row in batches:
|
for row in batches:
|
||||||
|
|||||||
Reference in New Issue
Block a user