From 9339a8b57ff13833b218d05e873e3232eb5b5b2a Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sun, 14 Jan 2024 11:04:13 +0530 Subject: [PATCH] Revert "fix: set against type in utils" This reverts commit f292a0cc4c89814607fec0bb66d1c458d6624750. --- .../accounts/doctype/invoice_discounting/invoice_discounting.py | 2 -- erpnext/regional/united_arab_emirates/utils.py | 1 - erpnext/stock/doctype/stock_entry/stock_entry.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py index 69b0860a30..d677f2247f 100644 --- a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py +++ b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py @@ -153,7 +153,6 @@ class InvoiceDiscounting(AccountsController): "account": inv.debit_to, "party_type": "Customer", "party": d.customer, - "against_type": "Account", "against": self.accounts_receivable_credit, "against_link": self.accounts_receivable_credit, "credit": outstanding_in_company_currency, @@ -175,7 +174,6 @@ class InvoiceDiscounting(AccountsController): "account": self.accounts_receivable_credit, "party_type": "Customer", "party": d.customer, - "against_type": "Account", "against": inv.debit_to, "against_link": inv.debit_to, "debit": outstanding_in_company_currency, diff --git a/erpnext/regional/united_arab_emirates/utils.py b/erpnext/regional/united_arab_emirates/utils.py index 3e9f76132c..6530ab8676 100644 --- a/erpnext/regional/united_arab_emirates/utils.py +++ b/erpnext/regional/united_arab_emirates/utils.py @@ -153,7 +153,6 @@ def make_gl_entry(tax, gl_entries, doc, tax_accounts): "account": tax.account_head, "cost_center": tax.cost_center, "posting_date": doc.posting_date, - "against_type": "Supplier", "against": doc.supplier, "against_link": doc.supplier, dr_or_cr: tax.base_tax_amount_after_discount_amount, diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index bc5f428951..0f866cbdc5 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -1459,7 +1459,6 @@ class StockEntry(StockController): self.get_gl_dict( { "account": account, - "against_type": "Account", "against": d.expense_account, "against_link": d.expense_account, "cost_center": d.cost_center, @@ -1475,7 +1474,6 @@ class StockEntry(StockController): self.get_gl_dict( { "account": d.expense_account, - "against_type": "Account", "against": account, "against_link": account, "cost_center": d.cost_center,