Merge pull request #37232 from GursheenK/make-against-field-dynamic

fix: make GL and JV against fields dynamic links
This commit is contained in:
Deepesh Garg
2023-12-16 22:27:50 +05:30
committed by GitHub
25 changed files with 462 additions and 132 deletions

View File

@@ -153,7 +153,9 @@ 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,
dr_or_cr + "_in_account_currency": tax.base_tax_amount_after_discount_amount
if account_currency == doc.company_currency