mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
journal voucher difference fix
This commit is contained in:
@@ -176,9 +176,9 @@ class DocType:
|
|||||||
if flag == 0 and (flt(diff) != 0):
|
if flag == 0 and (flt(diff) != 0):
|
||||||
jd = addchild(self.doc, 'entries', 'Journal Voucher Detail', self.doclist)
|
jd = addchild(self.doc, 'entries', 'Journal Voucher Detail', self.doclist)
|
||||||
if diff>0:
|
if diff>0:
|
||||||
jd.credit = flt(diff)
|
jd.credit = flt(abs(diff))
|
||||||
elif diff<0:
|
elif diff<0:
|
||||||
jd.debit = flt(diff)
|
jd.debit = flt(abs(diff))
|
||||||
|
|
||||||
# Set the total debit, total credit and difference
|
# Set the total debit, total credit and difference
|
||||||
for d in getlist(self.doclist,'entries'):
|
for d in getlist(self.doclist,'entries'):
|
||||||
|
|||||||
Reference in New Issue
Block a user