Minor fix

This commit is contained in:
Anand Doshi
2014-07-07 15:54:11 +05:30
parent 4f0a42846c
commit e729516af7
4 changed files with 5 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ def update_against_doc(d, jv_obj):
ch = jv_obj.append("entries")
ch.account = d['account']
ch.cost_center = cstr(jvd[0][0])
ch.balance = cstr(jvd[0][1])
ch.balance = flt(jvd[0][1])
ch.set(d['dr_or_cr'], flt(d['unadjusted_amt']) - flt(d['allocated_amt']))
ch.set(d['dr_or_cr']== 'debit' and 'credit' or 'debit', 0)
ch.against_account = cstr(jvd[0][2])