mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 20:35:09 +00:00
committed by
Mergify
parent
812ca37055
commit
461bc1733f
@@ -748,11 +748,16 @@ class SerialandBatchBundle(Document):
|
|||||||
|
|
||||||
precision = frappe.get_precision("Serial and Batch Entry", "incoming_rate")
|
precision = frappe.get_precision("Serial and Batch Entry", "incoming_rate")
|
||||||
for d in self.entries:
|
for d in self.entries:
|
||||||
|
fifo_batch_wise_val = True
|
||||||
|
if valuation_method == "FIFO" and d.batch_no in batches:
|
||||||
|
fifo_batch_wise_val = False
|
||||||
|
|
||||||
if self.is_rejected and not set_valuation_rate_for_rejected_materials:
|
if self.is_rejected and not set_valuation_rate_for_rejected_materials:
|
||||||
rate = 0.0
|
rate = 0.0
|
||||||
elif (
|
elif (
|
||||||
(flt(d.incoming_rate, precision) == flt(rate, precision))
|
(flt(d.incoming_rate, precision) == flt(rate, precision))
|
||||||
and not stock_queue
|
and not stock_queue
|
||||||
|
and fifo_batch_wise_val
|
||||||
and d.qty
|
and d.qty
|
||||||
and d.stock_value_difference
|
and d.stock_value_difference
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user