fixes in outstanding amount calculation on cancellation of payment entry

This commit is contained in:
Anand Doshi
2013-02-14 13:38:12 +05:30
parent 13dc9f3b1f
commit e74a1f2b85
9 changed files with 239 additions and 112 deletions

View File

@@ -24,11 +24,11 @@ def make_gl_entries(gl_map, cancel=False, adv_adj=False, merge_entries=True,
if merge_entries:
gl_map = merge_similar_entries(gl_map)
check_budget(gl_map, cancel)
save_entries(gl_map, cancel, adv_adj, update_outstanding)
if cancel:
set_as_cancel(gl_map[0]["voucher_type"], gl_map[0]["voucher_no"])
check_budget(gl_map, cancel)
save_entries(gl_map, cancel, adv_adj, update_outstanding)
def merge_similar_entries(gl_map):
merged_gl_map = []