refactor: move value inline

This commit is contained in:
Mihir Kandoi
2025-10-13 19:26:34 +05:30
parent fab7f9ee53
commit 1717a7c983

View File

@@ -239,7 +239,6 @@ def get_batch_qty(
get_auto_batch_nos,
)
based_on = frappe.get_single_value("Stock Settings", "pick_serial_and_batch_based_on")
batchwise_qty = defaultdict(float)
kwargs = frappe._dict(
{
@@ -248,7 +247,7 @@ def get_batch_qty(
"posting_date": posting_date,
"posting_time": posting_time,
"batch_no": batch_no,
"based_on": based_on,
"based_on": frappe.get_single_value("Stock Settings", "pick_serial_and_batch_based_on"),
"ignore_voucher_nos": ignore_voucher_nos,
"for_stock_levels": for_stock_levels,
"consider_negative_batches": consider_negative_batches,