fixes related to currency and po price list

This commit is contained in:
Anand Doshi
2013-01-27 17:02:49 +05:30
parent d4c7159f60
commit 44077d22cc
4 changed files with 28 additions and 26 deletions

View File

@@ -198,7 +198,7 @@ class DocType:
# ---------------------------------------------------
def create_default_cost_center(self):
glc = get_obj('GL Control')
cc_list = [{'cost_center_name':'Root','company_name':self.doc.name,'company_abbr':self.doc.abbr,'group_or_ledger':'Group','parent_cost_center':''}, {'cost_center_name':'Default CC Ledger','company_name':self.doc.name,'company_abbr':self.doc.abbr,'group_or_ledger':'Ledger','parent_cost_center':'Root - ' + self.doc.abbr}]
cc_list = [{'cost_center_name':'Root','company_name':self.doc.name,'group_or_ledger':'Group','parent_cost_center':''}, {'cost_center_name':'Default CC Ledger','company_name':self.doc.name,'group_or_ledger':'Ledger','parent_cost_center':'Root - ' + self.doc.abbr}]
for c in cc_list:
glc.add_cc(str(c))

View File

@@ -1,8 +1,8 @@
[
{
"creation": "2013-01-19 11:14:50",
"creation": "2013-01-27 16:31:07",
"docstatus": 0,
"modified": "2013-01-22 15:07:36",
"modified": "2013-01-27 13:32:26",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -56,24 +56,28 @@
"label": "Enabled"
},
{
"description": "Sub-currency. For e.g. \"Cent\"",
"doctype": "DocField",
"fieldname": "fraction",
"fieldtype": "Data",
"label": "Fraction"
},
{
"description": "1 Currency = [?] Fraction\nFor e.g. 1 USD = 100 Cent",
"doctype": "DocField",
"fieldname": "fraction_units",
"fieldtype": "Int",
"label": "Fraction Units"
},
{
"description": "A symbol for this currency. For e.g. $",
"doctype": "DocField",
"fieldname": "symbol",
"fieldtype": "Data",
"label": "Symbol"
},
{
"description": "How should the number be formatted?\n#,###.## or #.###,## etc.",
"doctype": "DocField",
"fieldname": "number_format",
"fieldtype": "Data",