fix: Linting issues

This commit is contained in:
Deepesh Garg
2020-11-28 16:48:56 +05:30
parent 692c617cb2
commit 65fb0729d2
3 changed files with 10 additions and 11 deletions

View File

@@ -516,7 +516,6 @@ class PurchaseInvoice(BuyingController):
# item gl entries
if not self.is_internal_transfer():
stock_items = self.get_stock_items()
expenses_included_in_valuation = self.get_company_default("expenses_included_in_valuation")
if self.update_stock and self.auto_accounting_for_stock:
warehouse_account = get_warehouse_account_map(self.company)

View File

@@ -612,10 +612,10 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
is_internal_invoice: function() {
if (['Sales Invoice', 'Purchase Invoice'].includes(this.frm.doc.doctype)) {
if (this.frm.doc.company === this.frm.doc.represents_company) {
return true
return true;
}
}
return false
return false;
},
calculate_outstanding_amount: function(update_paid_amount) {