Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
7a32ec0f4f
@ -51,11 +51,17 @@ def execute():
|
||||
update `tab%s`
|
||||
set
|
||||
total_tax = %s,
|
||||
other_charges_added = %s,
|
||||
other_charges_added_import = other_charges_added / conversion_rate,
|
||||
other_charges_deducted = %s,
|
||||
other_charges_deducted_import = other_charges_deducted / conversion_rate,
|
||||
grand_total = net_total + total_tax,
|
||||
grand_total_import = grand_total / conversion_rate
|
||||
grand_total_import = grand_total / conversion_rate,
|
||||
rounded_total = round(grand_total)
|
||||
where
|
||||
name = %s
|
||||
""" % (d[1], '%s', '%s'), (correct_total_tax, d['parent']))
|
||||
""" % (d['parenttype'], '%s', '%s', '%s', '%s'),
|
||||
(correct_total_tax, d['tax_added'], d['tax_ded'], d['parent']))
|
||||
|
||||
# set in words
|
||||
obj = get_obj(d['parenttype'], d['parent'], with_children=1)
|
||||
@ -70,7 +76,7 @@ def execute():
|
||||
|
||||
# fix gl entries
|
||||
if d['parenttype'] == 'Purchase Invoice' and d['docstatus'] == 1:
|
||||
webnotes.conn.sql("""update `tabGL Entry` set is_cancelled = 'No'
|
||||
webnotes.conn.sql("""update `tabGL Entry` set is_cancelled = 'Yes'
|
||||
where voucher_type = %s and voucher_no = %s""",
|
||||
(d['parenttype'], d['parent']))
|
||||
|
||||
|
@ -615,4 +615,8 @@ patch_list = [
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'reload_gl_mapper',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'fix_wrong_vouchers',
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user