mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 21:05:19 +00:00
fix in print formats and file rename
This commit is contained in:
@@ -69,3 +69,12 @@ def replace_file_list_column_entries():
|
||||
if file_list and "/" in file_list:
|
||||
webnotes.conn.sql("UPDATE `%s` SET file_list='%s' WHERE name='%s'" \
|
||||
% (tab, file_list.replace('/', '-'), name))
|
||||
|
||||
singles = webnotes.conn.sql("""SELECT doctype, value FROM `tabSingles`
|
||||
WHERE field='file_list'""")
|
||||
for doctype, file_list in singles:
|
||||
if file_list and "/" in file_list:
|
||||
webnotes.conn.sql("""UPDATE `tabSingles` SET value='%s'
|
||||
WHERE doctype='%s' AND field='file_list'"""
|
||||
% (file_list.replace('/', '-'), doctype))
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
<td><table width=100% cellspacing=0><tbody>
|
||||
<tr>
|
||||
<td width=40%><b>Invoice Date</b></td>
|
||||
<td><script>date.str_to_user(doc.voucher_date)</script></td>
|
||||
<td><script>date.str_to_user(doc.posting_date)</script></td>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><b>Due Date</b></td>
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=40%><b>Invoice Date</b></td>
|
||||
<td><script>date.str_to_user(doc.voucher_date)</script></td>
|
||||
<td><script>date.str_to_user(doc.posting_date)</script></td>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><b>Due Date</b></td>
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
<td><table width=100% cellspacing=0><tbody>
|
||||
<tr>
|
||||
<td width=40%><b>Invoice Date</b></td>
|
||||
<td><script>date.str_to_user(doc.voucher_date)</script></td>
|
||||
<td><script>date.str_to_user(doc.posting_date)</script></td>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><b>Due Date</b></td>
|
||||
|
||||
Reference in New Issue
Block a user