mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 13:38:27 +00:00
fix: valuation for batch items
This commit is contained in:
@@ -770,6 +770,9 @@ class BatchNoValuation(DeprecatedBatchNoValuation):
|
|||||||
self.non_batchwise_valuation_batches = self.batches
|
self.non_batchwise_valuation_batches = self.batches
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if get_valuation_method(self.sle.item_code) == "FIFO":
|
||||||
|
self.batchwise_valuation_batches = self.batches
|
||||||
|
else:
|
||||||
batches = frappe.get_all(
|
batches = frappe.get_all(
|
||||||
"Batch", filters={"name": ("in", self.batches), "use_batchwise_valuation": 1}, fields=["name"]
|
"Batch", filters={"name": ("in", self.batches), "use_batchwise_valuation": 1}, fields=["name"]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user