chore: Avoid multiline string in Translation & remove print statement

This commit is contained in:
marination 2020-11-02 15:23:41 +05:30
parent 28dd90f3dc
commit 3991b84b2b
2 changed files with 2 additions and 3 deletions

View File

@ -229,8 +229,8 @@ class StockController(AccountsController):
def check_expense_account(self, item):
if not item.get("expense_account"):
frappe.throw(_("Row #{0}: Expense Account not set for Item {1}. Please set an Expense \
Account in the Items table").format(item.idx, frappe.bold(item.item_code)),
frappe.throw(_("Row #{0}: Expense Account not set for Item {1}. Please set an Expense Account in the Items table")
.format(item.idx, frappe.bold(item.item_code)),
title=_("Expense Account Missing"))
else:

View File

@ -567,7 +567,6 @@ def update_billing_percentage(pr_doc, update_modified=True):
total_amount += total_billable_amount
total_billed_amount += flt(item.billed_amt)
print(total_billed_amount, total_amount)
percent_billed = round(100 * (total_billed_amount / total_amount), 6)
pr_doc.db_set("per_billed", percent_billed)
pr_doc.load_from_db()