fix: calculate outstanding amount on reconcile correctly

This commit is contained in:
Gursheen Anand
2023-06-13 15:00:46 +05:30
parent 5e9821dce2
commit 17341adf1c
8 changed files with 85 additions and 72 deletions

View File

@@ -2940,10 +2940,8 @@ def make_advance_liability_entry(
dr_or_cr + "_in_account_currency": allocated_amount,
rev: 0,
rev + "_in_account_currency": 0,
"against_voucher": invoice.return_against
if cint(invoice.is_return) and invoice.return_against
else invoice.name,
"against_voucher_type": invoice.doctype,
"against_voucher": pe.name,
"against_voucher_type": "Payment Entry",
"cost_center": invoice.cost_center,
"project": invoice.project,
"voucher_type": voucher_type,