mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
Journal Voucher Company Currency Fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# REMEMBER to update this
|
# REMEMBER to update this
|
||||||
# ========================
|
# ========================
|
||||||
last_patch = 302
|
last_patch = 303
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
@@ -1200,3 +1200,8 @@ def execute(patch_no):
|
|||||||
run_patch()
|
run_patch()
|
||||||
elif patch_no == 302:
|
elif patch_no == 302:
|
||||||
sql("update `tabDocField` set no_copy = 1 where fieldname = 'naming_series'")
|
sql("update `tabDocField` set no_copy = 1 where fieldname = 'naming_series'")
|
||||||
|
elif patch_no == 303:
|
||||||
|
for dt in sql("SELECT name FROM `tabJournal Voucher` where docstatus != 2 order by modified desc"):
|
||||||
|
obj = get_obj('Journal Voucher',dt[0])
|
||||||
|
obj.set_print_format_fields()
|
||||||
|
obj.doc.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user