fix: COGS account in purchase receipt

This commit is contained in:
Rohit Waghchaure
2021-07-30 12:36:35 +05:30
parent 22eac9bd0c
commit 2a14f255cf
5 changed files with 25 additions and 12 deletions

View File

@@ -904,9 +904,9 @@ class AccountsController(TransactionBase):
frappe.throw(_("Cannot overbill for Item {0} in row {1} more than {2}. To allow over-billing, please set allowance in Accounts Settings")
.format(item.item_code, item.idx, max_allowed_amt))
def get_company_default(self, fieldname):
def get_company_default(self, fieldname, ignore_validation=False):
from erpnext.accounts.utils import get_company_default
return get_company_default(self.company, fieldname)
return get_company_default(self.company, fieldname, ignore_validation=ignore_validation)
def get_stock_items(self):
stock_items = []