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

@@ -12,4 +12,4 @@ def execute():
if flt(r[1]) != abs(flt(outstanding[0][0])):
# print r, outstanding
webnotes.conn.sql("update `tab%s` set outstanding_amount = %s where name = %s" %
(dt, '%s', '%s'), (abs(flt(outstanding[0][0])), si[0]))
(dt, '%s', '%s'), (abs(flt(outstanding[0][0])), r[0]))

View File

@@ -169,4 +169,5 @@ patch_list = [
"patches.february_2013.update_company_in_leave_application",
"execute:webnotes.conn.sql_ddl('alter table tabSeries change `name` `name` varchar(100)')",
"execute:webnotes.conn.sql('update tabUserRole set parentfield=\"user_roles\" where parentfield=\"userroles\"')",
"patches.february_2013.fix_outstanding"
]