mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 22:21:50 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user