fix: set against type in utils
This commit is contained in:
parent
4c5a83d6cf
commit
f292a0cc4c
@ -125,6 +125,7 @@ class InvoiceDiscounting(AccountsController):
|
|||||||
"account": inv.debit_to,
|
"account": inv.debit_to,
|
||||||
"party_type": "Customer",
|
"party_type": "Customer",
|
||||||
"party": d.customer,
|
"party": d.customer,
|
||||||
|
"against_type": "Account",
|
||||||
"against": self.accounts_receivable_credit,
|
"against": self.accounts_receivable_credit,
|
||||||
"credit": outstanding_in_company_currency,
|
"credit": outstanding_in_company_currency,
|
||||||
"credit_in_account_currency": outstanding_in_company_currency
|
"credit_in_account_currency": outstanding_in_company_currency
|
||||||
@ -145,6 +146,7 @@ class InvoiceDiscounting(AccountsController):
|
|||||||
"account": self.accounts_receivable_credit,
|
"account": self.accounts_receivable_credit,
|
||||||
"party_type": "Customer",
|
"party_type": "Customer",
|
||||||
"party": d.customer,
|
"party": d.customer,
|
||||||
|
"against_type": "Account",
|
||||||
"against": inv.debit_to,
|
"against": inv.debit_to,
|
||||||
"debit": outstanding_in_company_currency,
|
"debit": outstanding_in_company_currency,
|
||||||
"debit_in_account_currency": outstanding_in_company_currency
|
"debit_in_account_currency": outstanding_in_company_currency
|
||||||
|
|||||||
@ -153,6 +153,7 @@ def make_gl_entry(tax, gl_entries, doc, tax_accounts):
|
|||||||
"account": tax.account_head,
|
"account": tax.account_head,
|
||||||
"cost_center": tax.cost_center,
|
"cost_center": tax.cost_center,
|
||||||
"posting_date": doc.posting_date,
|
"posting_date": doc.posting_date,
|
||||||
|
"against_type": "Supplier",
|
||||||
"against": doc.supplier,
|
"against": doc.supplier,
|
||||||
dr_or_cr: tax.base_tax_amount_after_discount_amount,
|
dr_or_cr: tax.base_tax_amount_after_discount_amount,
|
||||||
dr_or_cr + "_in_account_currency": tax.base_tax_amount_after_discount_amount
|
dr_or_cr + "_in_account_currency": tax.base_tax_amount_after_discount_amount
|
||||||
|
|||||||
@ -1360,6 +1360,7 @@ class StockEntry(StockController):
|
|||||||
self.get_gl_dict(
|
self.get_gl_dict(
|
||||||
{
|
{
|
||||||
"account": account,
|
"account": account,
|
||||||
|
"against_type": "Account",
|
||||||
"against": d.expense_account,
|
"against": d.expense_account,
|
||||||
"cost_center": d.cost_center,
|
"cost_center": d.cost_center,
|
||||||
"remarks": self.get("remarks") or _("Accounting Entry for Stock"),
|
"remarks": self.get("remarks") or _("Accounting Entry for Stock"),
|
||||||
@ -1374,6 +1375,7 @@ class StockEntry(StockController):
|
|||||||
self.get_gl_dict(
|
self.get_gl_dict(
|
||||||
{
|
{
|
||||||
"account": d.expense_account,
|
"account": d.expense_account,
|
||||||
|
"against_type": "Account",
|
||||||
"against": account,
|
"against": account,
|
||||||
"cost_center": d.cost_center,
|
"cost_center": d.cost_center,
|
||||||
"remarks": self.get("remarks") or _("Accounting Entry for Stock"),
|
"remarks": self.get("remarks") or _("Accounting Entry for Stock"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user