Revert "fix: set against type in utils"
This reverts commit f292a0cc4c89814607fec0bb66d1c458d6624750.
diff --git a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py
index 69b0860..d677f22 100644
--- a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py
+++ b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.py
@@ -153,7 +153,6 @@
"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 @@
"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 3e9f761..6530ab8 100644
--- a/erpnext/regional/united_arab_emirates/utils.py
+++ b/erpnext/regional/united_arab_emirates/utils.py
@@ -153,7 +153,6 @@
"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 bc5f428..0f866cb 100644
--- a/erpnext/stock/doctype/stock_entry/stock_entry.py
+++ b/erpnext/stock/doctype/stock_entry/stock_entry.py
@@ -1459,7 +1459,6 @@
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 @@
self.get_gl_dict(
{
"account": d.expense_account,
- "against_type": "Account",
"against": account,
"against_link": account,
"cost_center": d.cost_center,