Merge pull request #56474 from mihir-kandoi/messages/buying

fix: rewrite user-facing messages in buying module
This commit is contained in:
Mihir Kandoi
2026-06-25 16:35:08 +05:30
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class SubcontractingService:
)
)
if not item.fg_item_qty:
frappe.throw(_("Row #{0}: Finished Good Item Qty can not be zero").format(item.idx))
frappe.throw(_("Row #{0}: Finished Good Item Qty cannot be zero").format(item.idx))
else:
for item in doc.items:
item.set("fg_item", None)

View File

@@ -421,7 +421,7 @@ def check_portal_enabled(reference_doctype):
if not frappe.db.get_value("Portal Menu Item", {"reference_doctype": reference_doctype}, "enabled"):
frappe.throw(
_(
"The Access to Request for Quotation From Portal is Disabled. To Allow Access, Enable it in Portal Settings."
"Access to Request for Quotation from the portal is disabled. To allow access, enable it in Portal Settings."
)
)

View File

@@ -43,11 +43,11 @@ class SupplierScorecardVariable(Document):
import_string_path(self.path)
except AttributeError:
frappe.throw(_("Could not find path for " + self.path), VariablePathNotFound)
frappe.throw(_("Could not find path for {0}").format(self.path), VariablePathNotFound)
else:
if not hasattr(sys.modules[__name__], self.path):
frappe.throw(_("Could not find path for " + self.path), VariablePathNotFound)
frappe.throw(_("Could not find path for {0}").format(self.path), VariablePathNotFound)
def get_total_workdays(scorecard):