removed default_currency_fraction and default_currency_format from global defaults
This commit is contained in:
parent
27b4a92b02
commit
5ce1c668b5
@ -32,12 +32,10 @@ keydict = {
|
|||||||
'supp_master_name': 'supp_master_name',
|
'supp_master_name': 'supp_master_name',
|
||||||
'territory': 'default_territory',
|
'territory': 'default_territory',
|
||||||
'stock_uom': 'default_stock_uom',
|
'stock_uom': 'default_stock_uom',
|
||||||
'fraction_currency': 'default_currency_fraction',
|
|
||||||
'valuation_method': 'default_valuation_method',
|
'valuation_method': 'default_valuation_method',
|
||||||
'date_format': 'date_format',
|
'date_format': 'date_format',
|
||||||
'number_format': 'number_format',
|
'number_format': 'number_format',
|
||||||
'float_precision': 'float_precision',
|
'float_precision': 'float_precision',
|
||||||
'currency_format':'default_currency_format',
|
|
||||||
'account_url':'account_url',
|
'account_url':'account_url',
|
||||||
'allow_negative_stock' : 'allow_negative_stock',
|
'allow_negative_stock' : 'allow_negative_stock',
|
||||||
'maintain_same_rate' : 'maintain_same_rate',
|
'maintain_same_rate' : 'maintain_same_rate',
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"creation": "2013-01-10 16:34:23",
|
"creation": "2013-01-24 14:20:19",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-01-24 13:55:09",
|
"modified": "2013-01-25 11:51:16",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
@ -27,6 +27,8 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"amend": 0,
|
||||||
|
"cancel": 0,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -86,21 +88,6 @@
|
|||||||
"label": "Date Format",
|
"label": "Date Format",
|
||||||
"options": "yyyy-mm-dd\ndd-mm-yyyy\ndd/mm/yyyy\nmm/dd/yyyy\nmm-dd-yyyy"
|
"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",
|
"doctype": "DocField",
|
||||||
"fieldname": "column_break1",
|
"fieldname": "column_break1",
|
||||||
@ -118,16 +105,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"fieldname": "default_currency_format",
|
"fieldname": "number_format",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"label": "Default Currency Format",
|
"label": "Number Format",
|
||||||
"options": "Lacs\nMillions"
|
"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",
|
"doctype": "DocField",
|
||||||
"fieldname": "default_currency_fraction",
|
"fieldname": "float_precision",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Select",
|
||||||
"label": "Default Currency Fraction"
|
"label": "Float Precision",
|
||||||
|
"options": "\n2\n3\n4\n5\n6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
@ -69,8 +69,6 @@ class DocType:
|
|||||||
def_args = {
|
def_args = {
|
||||||
'current_fiscal_year':curr_fiscal_year,
|
'current_fiscal_year':curr_fiscal_year,
|
||||||
'default_currency': args.get('currency'),
|
'default_currency': args.get('currency'),
|
||||||
"default_fraction_currency": webnotes.conn.get_value("Currency",
|
|
||||||
args.get("currency"), "fraction"),
|
|
||||||
'default_company':args.get('company_name'),
|
'default_company':args.get('company_name'),
|
||||||
'default_valuation_method':'FIFO',
|
'default_valuation_method':'FIFO',
|
||||||
'default_stock_uom':'Nos',
|
'default_stock_uom':'Nos',
|
||||||
@ -82,9 +80,7 @@ class DocType:
|
|||||||
'pr_required':'No',
|
'pr_required':'No',
|
||||||
'emp_created_by':'Naming Series',
|
'emp_created_by':'Naming Series',
|
||||||
'cust_master_name':'Customer Name',
|
'cust_master_name':'Customer Name',
|
||||||
'supp_master_name':'Supplier Name',
|
'supp_master_name':'Supplier Name'
|
||||||
'default_currency_format': \
|
|
||||||
(args.get('currency')=='INR') and 'Lacs' or 'Millions'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set
|
# Set
|
||||||
|
@ -134,8 +134,6 @@ def reset_global_defaults():
|
|||||||
flds = {
|
flds = {
|
||||||
'default_company': '',
|
'default_company': '',
|
||||||
'default_currency': '',
|
'default_currency': '',
|
||||||
'default_currency_format': 'Lacs',
|
|
||||||
'default_currency_fraction': '',
|
|
||||||
'current_fiscal_year': '',
|
'current_fiscal_year': '',
|
||||||
'date_format': 'dd-mm-yyyy',
|
'date_format': 'dd-mm-yyyy',
|
||||||
'sms_sender_name': '',
|
'sms_sender_name': '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user