refactor(subcontracting): drop unused format arg in overconsumption message

The "exceeds quantity available" throw in `validate_manufacture` passes a
third positional arg (`item.transfer_qty`), but the message only has `{0}`
and `{1}` placeholders, so `str.format` silently discards it. Remove the
dead argument; no behaviour change.
This commit is contained in:
Mihir Kandoi
2026-06-22 07:48:08 +05:30
parent 48d49cdcd2
commit 8fc7cb0117

View File

@@ -287,7 +287,7 @@ class SubcontractingInwardController:
frappe.throw(
_(
"Row #{0}: Customer Provided Item {1} exceeds quantity available through Subcontracting Inward Order"
).format(item.idx, get_link_to_form("Item", item.item_code), item.transfer_qty)
).format(item.idx, get_link_to_form("Item", item.item_code))
)
elif item.s_warehouse != customer_warehouse:
frappe.throw(