mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
chore: Avoid multiline string in Translation & remove print statement
This commit is contained in:
@@ -229,8 +229,8 @@ class StockController(AccountsController):
|
|||||||
|
|
||||||
def check_expense_account(self, item):
|
def check_expense_account(self, item):
|
||||||
if not item.get("expense_account"):
|
if not item.get("expense_account"):
|
||||||
frappe.throw(_("Row #{0}: Expense Account not set for Item {1}. Please set an Expense \
|
frappe.throw(_("Row #{0}: Expense Account not set for Item {1}. Please set an Expense Account in the Items table")
|
||||||
Account in the Items table").format(item.idx, frappe.bold(item.item_code)),
|
.format(item.idx, frappe.bold(item.item_code)),
|
||||||
title=_("Expense Account Missing"))
|
title=_("Expense Account Missing"))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -567,7 +567,6 @@ def update_billing_percentage(pr_doc, update_modified=True):
|
|||||||
total_amount += total_billable_amount
|
total_amount += total_billable_amount
|
||||||
total_billed_amount += flt(item.billed_amt)
|
total_billed_amount += flt(item.billed_amt)
|
||||||
|
|
||||||
print(total_billed_amount, total_amount)
|
|
||||||
percent_billed = round(100 * (total_billed_amount / total_amount), 6)
|
percent_billed = round(100 * (total_billed_amount / total_amount), 6)
|
||||||
pr_doc.db_set("per_billed", percent_billed)
|
pr_doc.db_set("per_billed", percent_billed)
|
||||||
pr_doc.load_from_db()
|
pr_doc.load_from_db()
|
||||||
|
|||||||
Reference in New Issue
Block a user