mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
fix: Re-order Item Error Email format (#21342)
* fix: Re-order Item Error Email format * fix: Translated strings
This commit is contained in:
@@ -126,7 +126,7 @@ class TransactionBase(StatusUpdater):
|
||||
frappe.msgprint(_("Row #{0}: Rate must be same as {1}: {2} ({3} / {4}) ")
|
||||
.format(d.idx, ref_dt, d.get(ref_dn_field), d.rate, ref_rate))
|
||||
frappe.throw(_("To allow different rates, disable the {0} checkbox in {1}.")
|
||||
.format(frappe.bold("Maintain Same Rate Throughout Sales Cycle"),
|
||||
.format(frappe.bold(_("Maintain Same Rate Throughout Sales Cycle")),
|
||||
get_link_to_form("Selling Settings", "Selling Settings", frappe.bold("Selling Settings"))))
|
||||
|
||||
def get_link_filters(self, for_doctype):
|
||||
@@ -179,4 +179,6 @@ def validate_uom_is_integer(doc, uom_field, qty_fields, child_dt=None):
|
||||
qty = d.get(f)
|
||||
if qty:
|
||||
if abs(cint(qty) - flt(qty)) > 0.0000001:
|
||||
frappe.throw(_("Quantity ({0}) cannot be a fraction in row {1}").format(qty, d.idx), UOMMustBeIntegerError)
|
||||
frappe.throw(_("Row {1}: Quantity ({0}) cannot be a fraction. To allow this, disable '{2}' in UOM {3}.") \
|
||||
.format(qty, d.idx, frappe.bold(_("Must be Whole Number")), frappe.bold(d.get(uom_field))),
|
||||
UOMMustBeIntegerError)
|
||||
|
||||
Reference in New Issue
Block a user