refactor: use different GL build logic for advance as liability

This commit is contained in:
ruthra kumar
2023-11-28 16:50:22 +05:30
parent 78ab11f991
commit 58114e7b24
2 changed files with 63 additions and 51 deletions

View File

@@ -499,7 +499,7 @@ def reconcile_against_document(args, skip_ref_details_update_for_pe=False): # n
if voucher_type == "Payment Entry" and doc.book_advance_payments_in_separate_party_account:
# both ledgers must be posted to for `Advance as Liability`
doc.make_gl_entries()
doc.make_advance_gl_entries()
else:
gl_map = doc.build_gl_map()
create_payment_ledger_entry(gl_map, update_outstanding="No", cancel=0, adv_adj=1)