removed default_currency_fraction and default_currency_format from global defaults

This commit is contained in:
Nabin Hait 2013-01-25 12:06:57 +05:30
parent 27b4a92b02
commit 5ce1c668b5
4 changed files with 13 additions and 32 deletions

View File

@ -32,12 +32,10 @@ keydict = {
'supp_master_name': 'supp_master_name',
'territory': 'default_territory',
'stock_uom': 'default_stock_uom',
'fraction_currency': 'default_currency_fraction',
'valuation_method': 'default_valuation_method',
'date_format': 'date_format',
'number_format': 'number_format',
'float_precision': 'float_precision',
'currency_format':'default_currency_format',
'account_url':'account_url',
'allow_negative_stock' : 'allow_negative_stock',
'maintain_same_rate' : 'maintain_same_rate',

View File

@ -1,8 +1,8 @@
[
{
"creation": "2013-01-10 16:34:23",
"creation": "2013-01-24 14:20:19",
"docstatus": 0,
"modified": "2013-01-24 13:55:09",
"modified": "2013-01-25 11:51:16",
"modified_by": "Administrator",
"owner": "Administrator"
},
@ -27,6 +27,8 @@
"permlevel": 0
},
{
"amend": 0,
"cancel": 0,
"create": 1,
"doctype": "DocPerm",
"name": "__common__",
@ -86,21 +88,6 @@
"label": "Date Format",
"options": "yyyy-mm-dd\ndd-mm-yyyy\ndd/mm/yyyy\nmm/dd/yyyy\nmm-dd-yyyy"
},
{
"doctype": "DocField",
"fieldname": "number_format",
"fieldtype": "Select",
"label": "Number Format",
"options": "\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.",
"doctype": "DocField",
"fieldname": "float_precision",
"fieldtype": "Select",
"label": "Float Precision",
"options": "\n2\n3\n4\n5\n6"
},
{
"doctype": "DocField",
"fieldname": "column_break1",
@ -118,16 +105,18 @@
},
{
"doctype": "DocField",
"fieldname": "default_currency_format",
"fieldname": "number_format",
"fieldtype": "Select",
"label": "Default Currency Format",
"options": "Lacs\nMillions"
"label": "Number Format",
"options": "\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.",
"doctype": "DocField",
"fieldname": "default_currency_fraction",
"fieldtype": "Data",
"label": "Default Currency Fraction"
"fieldname": "float_precision",
"fieldtype": "Select",
"label": "Float Precision",
"options": "\n2\n3\n4\n5\n6"
},
{
"doctype": "DocField",

View File

@ -69,8 +69,6 @@ class DocType:
def_args = {
'current_fiscal_year':curr_fiscal_year,
'default_currency': args.get('currency'),
"default_fraction_currency": webnotes.conn.get_value("Currency",
args.get("currency"), "fraction"),
'default_company':args.get('company_name'),
'default_valuation_method':'FIFO',
'default_stock_uom':'Nos',
@ -82,9 +80,7 @@ class DocType:
'pr_required':'No',
'emp_created_by':'Naming Series',
'cust_master_name':'Customer Name',
'supp_master_name':'Supplier Name',
'default_currency_format': \
(args.get('currency')=='INR') and 'Lacs' or 'Millions'
'supp_master_name':'Supplier Name'
}
# Set

View File

@ -134,8 +134,6 @@ def reset_global_defaults():
flds = {
'default_company': '',
'default_currency': '',
'default_currency_format': 'Lacs',
'default_currency_fraction': '',
'current_fiscal_year': '',
'date_format': 'dd-mm-yyyy',
'sms_sender_name': '',