From 5c6cdb06b2fddeecda349584890d472adac4a710 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 2 Apr 2012 15:02:34 +0530 Subject: [PATCH] fix in decimal places --- erpnext/patches/mar_2012/doctype_get_refactor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/mar_2012/doctype_get_refactor.py b/erpnext/patches/mar_2012/doctype_get_refactor.py index 819cd83a1b..d172f0b322 100644 --- a/erpnext/patches/mar_2012/doctype_get_refactor.py +++ b/erpnext/patches/mar_2012/doctype_get_refactor.py @@ -3,7 +3,7 @@ def execute(): """ * Custom Field changes * Add file_list to required tables - * Change floats/currency to decimal(14, 6) + * Change floats/currency to decimal(18, 6) * Remove DocFormat from DocType's fields * Remove 'no_column' from DocField * Drop table DocFormat @@ -151,7 +151,7 @@ def change_to_decimal(): flist.append(d.get('Field')) if flist: #print tab[0], flist - statements = ("MODIFY `%s` decimal(14,6)" % f for f in flist) + statements = ("MODIFY `%s` decimal(18,6)" % f for f in flist) statements = ", \n".join(statements) alter_tables_list.append("ALTER TABLE `%s` \n%s\n" % (tab[0], statements))