added format_currency and added options to all currency fields

This commit is contained in:
Rushabh Mehta
2013-01-23 19:39:51 +05:30
parent 6382a42dbe
commit 597d470e63
96 changed files with 804 additions and 604 deletions

View File

@@ -1,8 +1,8 @@
[
{
"creation": "2013-01-10 16:34:16",
"creation": "2013-01-22 15:11:38",
"docstatus": 0,
"modified": "2013-01-22 14:55:57",
"modified": "2013-01-23 17:00:25",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -150,7 +150,7 @@
{
"doctype": "DocField",
"fieldname": "total_cost",
"fieldtype": "Currency",
"fieldtype": "Float",
"label": "Total Cost",
"read_only": 1
},
@@ -162,14 +162,14 @@
{
"doctype": "DocField",
"fieldname": "raw_material_cost",
"fieldtype": "Currency",
"fieldtype": "Float",
"label": "Total Raw Material Cost",
"read_only": 1
},
{
"doctype": "DocField",
"fieldname": "operating_cost",
"fieldtype": "Currency",
"fieldtype": "Float",
"label": "Total Operating Cost",
"read_only": 1
},

View File

@@ -36,8 +36,7 @@ wn.doclistviews['BOM'] = wn.views.ListView.extend({
{
width: '20%',
content: function(parent, data) {
$(parent).html(sys_defaults.currency + " "
+ fmt_money(data.total_cost));
$(parent).html(format_currency(data.total_cost));
},
css: {'text-align': 'right'},
},