fixes to currency number formatting - will pick first from currency master and also made explict options for number formatting

This commit is contained in:
Rushabh Mehta
2013-01-28 10:42:32 +05:30
parent 44077d22cc
commit 671538ff8c
2 changed files with 9 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
[ [
{ {
"creation": "2013-01-27 16:31:07", "creation": "2013-01-28 10:06:02",
"docstatus": 0, "docstatus": 0,
"modified": "2013-01-27 13:32:26", "modified": "2013-01-28 10:37:18",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@@ -77,11 +77,12 @@
"label": "Symbol" "label": "Symbol"
}, },
{ {
"description": "How should the number be formatted?\n#,###.## or #.###,## etc.", "description": "How should this currency be formatted? If not set, will use system defaults",
"doctype": "DocField", "doctype": "DocField",
"fieldname": "number_format", "fieldname": "number_format",
"fieldtype": "Data", "fieldtype": "Select",
"label": "Number Format" "label": "Number Format",
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n#.###\n#,###"
}, },
{ {
"cancel": 1, "cancel": 1,

View File

@@ -1,8 +1,8 @@
[ [
{ {
"creation": "2013-01-24 14:20:19", "creation": "2013-01-28 10:06:02",
"docstatus": 0, "docstatus": 0,
"modified": "2013-01-25 11:51:16", "modified": "2013-01-28 10:36:35",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@@ -27,8 +27,6 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"amend": 0,
"cancel": 0,
"create": 1, "create": 1,
"doctype": "DocPerm", "doctype": "DocPerm",
"name": "__common__", "name": "__common__",
@@ -108,7 +106,7 @@
"fieldname": "number_format", "fieldname": "number_format",
"fieldtype": "Select", "fieldtype": "Select",
"label": "Number Format", "label": "Number Format",
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n######" "options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n#.###\n#,###"
}, },
{ {
"description": "Precision for Float fields (quantities, discounts, percentages etc) only for display. Floats will still be calculated up to 6 decimals.", "description": "Precision for Float fields (quantities, discounts, percentages etc) only for display. Floats will still be calculated up to 6 decimals.",