From 69554511da879abe9d638dae0e7b6b3b9cc2f777 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 19 Oct 2011 16:35:39 +0530 Subject: [PATCH] fixes in patch --- .../doctype/receivable_voucher/receivable_voucher.txt | 4 ++-- erpnext/patches/p1.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/receivable_voucher/receivable_voucher.txt b/erpnext/accounts/doctype/receivable_voucher/receivable_voucher.txt index 99c1029bcb..1abd6a725b 100644 --- a/erpnext/accounts/doctype/receivable_voucher/receivable_voucher.txt +++ b/erpnext/accounts/doctype/receivable_voucher/receivable_voucher.txt @@ -5,7 +5,7 @@ { 'creation': '2010-08-08 17:09:18', 'docstatus': 0, - 'modified': '2011-10-19 15:02:04', + 'modified': '2011-10-19 16:31:54', 'modified_by': 'Administrator', 'owner': 'Administrator' }, @@ -34,7 +34,7 @@ 'server_code_error': ' ', 'show_in_menu': 0, 'subject': 'To %(customer_name)s worth %(currency)s %(grand_total_export)s due on %(due_date)s | %(outstanding_amount)s outstanding', - 'version': 361 + 'version': 363 }, # These values are common for all DocFormat diff --git a/erpnext/patches/p1.py b/erpnext/patches/p1.py index c6f16efeb7..e2304c760d 100644 --- a/erpnext/patches/p1.py +++ b/erpnext/patches/p1.py @@ -1,4 +1,4 @@ def execute(): import webnotes if not webnotes.conn.sql("select name from tabDocFormat where parent = 'Receivable Voucher' and format != 'POS Invoice'"): - webnotes.conn.sql("update tabDocType set default_print_format = 'Standard' where name = 'Receivable Voucher' and default_print_format = ''") + webnotes.conn.sql("update tabDocType set default_print_format = 'Standard' where name = 'Receivable Voucher'")