test: add tests for advance liability entries

Add Sales and Purchase Invoice Tests to check if GL entries and Outstanding Amount are generated correctly when advance entries are recorded as liability.

Few changes to return value of added column in Payment Entry References.
This commit is contained in:
Gursheen Anand
2023-06-08 18:15:37 +05:30
parent 4ee163742a
commit b65e58c1ae
5 changed files with 113 additions and 21 deletions

View File

@@ -625,6 +625,7 @@ def update_reference_in_payment_entry(
if not d.exchange_gain_loss
else payment_entry.get_exchange_rate(),
"exchange_gain_loss": d.exchange_gain_loss, # only populated from invoice in case of advance allocation
"account": d.account,
}
if d.voucher_detail_no: