Skip to content

Commit f570a4c

Browse files
rohitwaghchauremergify[bot]
authored andcommitted
fix: stock queue for SABB
(cherry picked from commit 3fcf308)
1 parent 18eb7bb commit f570a4c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,11 +757,16 @@ def set_incoming_rate_for_inward_transaction(self, row=None, save=False, prev_sl
757757

758758
precision = frappe.get_precision("Serial and Batch Entry", "incoming_rate")
759759
for d in self.entries:
760+
fifo_batch_wise_val = True
761+
if valuation_method == "FIFO" and d.batch_no in batches:
762+
fifo_batch_wise_val = False
763+
760764
if self.is_rejected and not set_valuation_rate_for_rejected_materials:
761765
rate = 0.0
762766
elif (
763767
(flt(d.incoming_rate, precision) == flt(rate, precision))
764768
and not stock_queue
769+
and fifo_batch_wise_val
765770
and d.qty
766771
and d.stock_value_difference
767772
):

0 commit comments

Comments
 (0)