test: Purchase Order with Unit Price Items

- chore: Fix error message in accounts controller
This commit is contained in:
marination
2025-03-14 18:00:40 +01:00
parent 8f96c0b546
commit eea758f5b2
6 changed files with 98 additions and 10 deletions

View File

@@ -3658,9 +3658,9 @@ def update_child_qty_rate(parent_doctype, trans_items, parent_doctype_name, chil
)
if amount_below_billed_amt and row_rate > 0.0:
frappe.throw(
_("Row #{0}: Cannot set Rate if amount is greater than billed amount for Item {1}.").format(
child_item.idx, child_item.item_code
)
_(
"Row #{0}: Cannot set Rate if the billed amount is greater than the amount for Item {1}."
).format(child_item.idx, child_item.item_code)
)
else:
child_item.rate = row_rate