From 016948804dd7e4f581e94c93d09f22d4cb1f7300 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sun, 17 Aug 2025 10:55:54 +0530 Subject: [PATCH] chore: fix test case --- erpnext/stock/serial_batch_bundle.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index 172ee4edcf2..21180accf83 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -189,16 +189,14 @@ class SerialBatchBundle: ste_detail = frappe.db.get_value( "Stock Entry Detail", self.sle.voucher_detail_no, - ["additional_cost", "landed_cost_voucher_amount", "transfer_qty"], + ["additional_cost", "transfer_qty"], as_dict=True, ) additional_cost = 0.0 if ste_detail: - additional_cost = ( - flt(ste_detail.additional_cost) + flt(ste_detail.landed_cost_voucher_amount) - ) / flt(ste_detail.transfer_qty) + additional_cost = flt(ste_detail.additional_cost) / flt(ste_detail.transfer_qty) values_to_update["basic_rate"] = basic_rate values_to_update["valuation_rate"] = basic_rate + additional_cost