Update accounts_controller.py

This commit is contained in:
Nabin Hait 2019-07-01 15:16:49 +05:30 committed by GitHub
parent c77bd82083
commit 659a01d819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,7 @@ class AccountsController(TransactionBase):
def validate_qty_is_not_zero(self): def validate_qty_is_not_zero(self):
for item in self.items: for item in self.items:
if not item.qty: if not item.qty:
frappe.throw("Item quantity can not be zero") frappe.throw(_("Item quantity can not be zero"))
def validate_account_currency(self, account, account_currency=None): def validate_account_currency(self, account, account_currency=None):
valid_currency = [self.company_currency] valid_currency = [self.company_currency]