fix: Linting issues

This commit is contained in:
Deepesh Garg
2021-08-10 11:02:21 +05:30
parent 428ccebad9
commit 797170e913

View File

@@ -519,8 +519,6 @@ class PurchaseInvoice(BuyingController):
if d.category in ('Valuation', 'Total and Valuation') if d.category in ('Valuation', 'Total and Valuation')
and flt(d.base_tax_amount_after_discount_amount)] and flt(d.base_tax_amount_after_discount_amount)]
exchange_rate_map, net_rate_map = get_purchase_document_details(self)
enable_discount_accounting = cint(frappe.db.get_single_value('Accounts Settings', 'enable_discount_accounting')) enable_discount_accounting = cint(frappe.db.get_single_value('Accounts Settings', 'enable_discount_accounting'))
for item in self.get("items"): for item in self.get("items"):
@@ -841,8 +839,8 @@ class PurchaseInvoice(BuyingController):
"account": tax.account_head, "account": tax.account_head,
"against": self.supplier, "against": self.supplier,
dr_or_cr: base_amount, dr_or_cr: base_amount,
dr_or_cr + "_in_account_currency": base_amount \ dr_or_cr + "_in_account_currency": base_amount
if account_currency==self.company_currency \ if account_currency==self.company_currency
else amount, else amount,
"cost_center": tax.cost_center "cost_center": tax.cost_center
}, account_currency, item=tax) }, account_currency, item=tax)