From 3401086d668f9adc649ebd11039dff9249c7c5c0 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 20 Mar 2012 12:07:18 +0530 Subject: [PATCH 1/4] POS Invoice fix --- .../Print Format/POS Invoice/POS Invoice.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt b/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt index 6a7e83589f1..fdc64921ba0 100644 --- a/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt +++ b/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt @@ -3,25 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-10-19 14:27:47', + 'creation': '2011-12-21 11:08:55', 'docstatus': 0, - 'modified': '2011-10-19 14:29:45', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-03-20 12:00:05', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { + 'doc_type': u'Receivable Voucher', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n
NO: DATE:
M/s
\n\n
\n \n\n
\n\n\n
\n \n
\n\n
\n\n\n\n\n\n
For
 
Signatory
\n\n', - 'module': 'Accounts', + 'html': u'\n\n\n\n\n\n\n\n\n\n \n \n\n\n \n\n
NO: DATE:
M/s
\n\n
\n\n
\n\n

\n\n \n \n \n \n
For
 
Signatory
\n\n\n', + 'module': u'Accounts', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, POS Invoice { 'doctype': 'Print Format', - 'name': 'POS Invoice' + 'name': u'POS Invoice' } ] \ No newline at end of file From 547ce9f9c81ff2e7c2129f0ba502b7c9206dcec3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 20 Mar 2012 12:11:38 +0530 Subject: [PATCH 2/4] POS Invoice fix --- erpnext/patches/mar_2012/__init__.py | 0 erpnext/patches/mar_2012/pos_invoice_fix.py | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 erpnext/patches/mar_2012/__init__.py create mode 100644 erpnext/patches/mar_2012/pos_invoice_fix.py diff --git a/erpnext/patches/mar_2012/__init__.py b/erpnext/patches/mar_2012/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/patches/mar_2012/pos_invoice_fix.py b/erpnext/patches/mar_2012/pos_invoice_fix.py new file mode 100644 index 00000000000..9905f006178 --- /dev/null +++ b/erpnext/patches/mar_2012/pos_invoice_fix.py @@ -0,0 +1,5 @@ +def execute(): + import webnotes + webnotes.conn.sql("DELETE FROM `tabDocFormat` WHERE format='POS Invoice'") + from webnotes.modules.modules_manager import reload_doc + reload_doc('accounts', 'Print Format', 'POS Invoice') From 6ba51ca693b8af27d533ba78841d2385e9a28227 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 20 Mar 2012 12:24:51 +0530 Subject: [PATCH 3/4] POS Invoice fix --- erpnext/patches/mar_2012/pos_invoice_fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/mar_2012/pos_invoice_fix.py b/erpnext/patches/mar_2012/pos_invoice_fix.py index 9905f006178..77ebcb4e4c1 100644 --- a/erpnext/patches/mar_2012/pos_invoice_fix.py +++ b/erpnext/patches/mar_2012/pos_invoice_fix.py @@ -1,5 +1,5 @@ def execute(): import webnotes webnotes.conn.sql("DELETE FROM `tabDocFormat` WHERE format='POS Invoice'") - from webnotes.modules.modules_manager import reload_doc + from webnotes.modules.module_manager import reload_doc reload_doc('accounts', 'Print Format', 'POS Invoice') From d05aad647447e826ca9cbe533a858d4287a13e73 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 20 Mar 2012 12:33:02 +0530 Subject: [PATCH 4/4] fix in POS invoice --- erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt b/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt index fdc64921ba0..8664b3882ba 100644 --- a/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt +++ b/erpnext/accounts/Print Format/POS Invoice/POS Invoice.txt @@ -5,7 +5,7 @@ { 'creation': '2011-12-21 11:08:55', 'docstatus': 0, - 'modified': '2012-03-20 12:00:05', + 'modified': '2012-03-20 12:29:49', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -14,7 +14,7 @@ { 'doc_type': u'Receivable Voucher', 'doctype': 'Print Format', - 'html': u'\n\n\n\n\n\n\n\n\n\n \n \n\n\n \n\n
NO: DATE:
M/s
\n\n
\n\n
\n\n

\n\n \n \n \n \n
For
 
Signatory
\n\n\n', + 'html': u'\n\n\n\n\n\n\n\n\n\n \n \n\n\n \n\n
NO: DATE:
M/s
\n\n
\n\n
\n\n

\n\n \n \n \n \n
For
 
Signatory
\n\n\n', 'module': u'Accounts', 'name': '__common__', 'standard': u'Yes'