Skip to content

Commit

Permalink
fix: Grammar in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
marination authored Nov 22, 2023
1 parent 81927a9 commit 680ced4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,13 +906,13 @@ def validate_qty_is_not_zero(self):
for item in self.items:
if not flt(item.qty):
frappe.throw(
msg=_("Row #{0}: Item quantity can not be zero").format(item.idx),
msg=_("Row #{0}: Item quantity cannot be zero").format(item.idx),
title=title,
exc=InvalidQtyError,
)
if flt(item.qty) < 0.0 and self.doctype in ["Purchase Order", "Sales Order"]:
frappe.throw(
msg=_("Row #{0}: Item quantity can not be negative").format(item.idx),
msg=_("Row #{0}: Item quantity cannot be negative").format(item.idx),
title=title,
exc=InvalidQtyError,
)
Expand Down

0 comments on commit 680ced4

Please sign in to comment.