Update outstanding amt based on party

Party mandatory if account is receivable/payable
Fetch advance based on party
Reconciliation splitting logic based on party
This commit is contained in:
Nabin Hait
2014-08-29 11:18:32 +05:30
parent cc582bd774
commit 3225102eb9
7 changed files with 42 additions and 21 deletions

View File

@@ -122,5 +122,5 @@ def delete_gl_entries(gl_entries=None, voucher_type=None, voucher_no=None,
validate_expense_against_budget(entry)
if entry.get("against_voucher") and update_outstanding == 'Yes':
update_outstanding_amt(entry["account"], entry.get("against_voucher_type"),
update_outstanding_amt(entry["account"], entry.get("party_type"), entry.get("party"), entry.get("against_voucher_type"),
entry.get("against_voucher"), on_cancel=True)