[cleanup] UI Fixes, minor

This commit is contained in:
Rushabh Mehta
2013-11-06 11:29:47 +05:30
48 changed files with 162 additions and 131 deletions

View File

@@ -425,15 +425,16 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
// toggle fields
this.frm.toggle_display(["conversion_rate", "net_total", "grand_total",
"in_words", "other_charges_added", "other_charges_deducted"],
this.frm.doc.currency != company_currency);
this.frm.toggle_display(["plc_conversion_rate"],
this.frm.price_list_currency != company_currency);
this.frm.doc.currency !== company_currency);
this.frm.toggle_display(["plc_conversion_rate", "price_list_currency"],
this.frm.doc.price_list_currency !== company_currency);
// set labels
$.each(field_label_map, function(fname, label) {
me.frm.fields_dict[fname].set_label(label);
});
},
change_grid_labels: function(company_currency) {

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-05-21 16:16:39",
"docstatus": 0,
"modified": "2013-11-03 14:14:10",
"modified": "2013-11-05 23:09:58",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -215,7 +215,6 @@
"print_hide": 1
},
{
"depends_on": "buying_price_list",
"doctype": "DocField",
"fieldname": "price_list_currency",
"fieldtype": "Link",
@@ -225,7 +224,6 @@
"read_only": 1
},
{
"depends_on": "buying_price_list",
"doctype": "DocField",
"fieldname": "plc_conversion_rate",
"fieldtype": "Float",
@@ -308,7 +306,7 @@
"doctype": "DocField",
"fieldname": "purchase_other_charges",
"fieldtype": "Link",
"label": "Purchase Taxes and Charges",
"label": "Tax Master",
"no_copy": 0,
"oldfieldname": "purchase_other_charges",
"oldfieldtype": "Link",
@@ -491,7 +489,7 @@
"doctype": "DocField",
"fieldname": "terms",
"fieldtype": "Text Editor",
"label": "Terms and Conditions1",
"label": "Terms and Conditions",
"oldfieldname": "terms",
"oldfieldtype": "Text Editor"
},
@@ -607,14 +605,6 @@
"print_hide": 1,
"report_hide": 1
},
{
"doctype": "DocField",
"fieldname": "instructions",
"fieldtype": "Text",
"label": "Instructions",
"oldfieldname": "instructions",
"oldfieldtype": "Text"
},
{
"doctype": "DocField",
"fieldname": "column_break5",
@@ -652,26 +642,6 @@
"print_hide": 1,
"read_only": 1
},
{
"doctype": "DocField",
"fieldname": "payment_terms",
"fieldtype": "Text",
"label": "Payment Terms",
"no_copy": 1,
"oldfieldname": "payment_terms",
"oldfieldtype": "Text",
"print_hide": 0
},
{
"doctype": "DocField",
"fieldname": "remarks",
"fieldtype": "Text",
"label": "Remarks",
"no_copy": 1,
"oldfieldname": "remarks",
"oldfieldtype": "Text",
"print_hide": 1
},
{
"description": "Required raw materials issued to the supplier for producing a sub - contracted item.",
"doctype": "DocField",