[selling] added shipping rule link besides taxes master link field

This commit is contained in:
Anand Doshi 2013-06-27 12:17:30 +05:30
parent f7c4d1e807
commit 77cd10b10a
5 changed files with 27 additions and 22 deletions

View File

@ -2,7 +2,7 @@
{ {
"creation": "2013-05-24 19:29:05", "creation": "2013-05-24 19:29:05",
"docstatus": 0, "docstatus": 0,
"modified": "2013-06-12 15:14:00", "modified": "2013-06-27 11:35:29",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@ -432,7 +432,7 @@
"doctype": "DocField", "doctype": "DocField",
"fieldname": "charge", "fieldname": "charge",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Taxes and Charges", "label": "Apply Taxes and Charges Master",
"oldfieldname": "charge", "oldfieldname": "charge",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"options": "Sales Taxes and Charges Master", "options": "Sales Taxes and Charges Master",
@ -446,10 +446,11 @@
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "get_charges", "fieldname": "shipping_rule",
"fieldtype": "Button", "fieldtype": "Link",
"label": "Get Taxes and Charges", "label": "Apply Shipping Rule",
"oldfieldtype": "Button", "oldfieldtype": "Button",
"options": "Shipping Rule",
"print_hide": 1, "print_hide": 1,
"read_only": 0 "read_only": 0
}, },

View File

@ -2,7 +2,7 @@
{ {
"creation": "2013-05-24 19:29:08", "creation": "2013-05-24 19:29:08",
"docstatus": 0, "docstatus": 0,
"modified": "2013-06-19 15:55:15", "modified": "2013-06-27 11:31:49",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@ -420,7 +420,7 @@
"fieldname": "charge", "fieldname": "charge",
"fieldtype": "Link", "fieldtype": "Link",
"hidden": 0, "hidden": 0,
"label": "Sales Taxes and Charges", "label": "Apply Taxes and Charges Master",
"oldfieldname": "charge", "oldfieldname": "charge",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"options": "Sales Taxes and Charges Master", "options": "Sales Taxes and Charges Master",
@ -434,11 +434,12 @@
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "get_charges", "fieldname": "shipping_rule",
"fieldtype": "Button", "fieldtype": "Link",
"hidden": 0, "hidden": 0,
"label": "Get Taxes and Charges", "label": "Apply Shipping Rule",
"oldfieldtype": "Button", "oldfieldtype": "Button",
"options": "Shipping Rule",
"print_hide": 1, "print_hide": 1,
"read_only": 0 "read_only": 0
}, },

View File

@ -368,7 +368,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
} }
}, },
get_charges: function() { charge: function() {
var me = this; var me = this;
if(this.frm.doc.charge) { if(this.frm.doc.charge) {
this.frm.call({ this.frm.call({

View File

@ -2,7 +2,7 @@
{ {
"creation": "2013-06-18 12:39:59", "creation": "2013-06-18 12:39:59",
"docstatus": 0, "docstatus": 0,
"modified": "2013-06-18 17:49:11", "modified": "2013-06-27 11:31:02",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@ -450,7 +450,7 @@
"doctype": "DocField", "doctype": "DocField",
"fieldname": "charge", "fieldname": "charge",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Sales Taxes and Charges", "label": "Apply Taxes and Charges Master",
"oldfieldname": "charge", "oldfieldname": "charge",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"options": "Sales Taxes and Charges Master", "options": "Sales Taxes and Charges Master",
@ -463,10 +463,12 @@
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "get_charges", "fieldname": "shipping_rule",
"fieldtype": "Button", "fieldtype": "Link",
"label": "Get Taxes and Charges", "label": "Apply Shipping Rule",
"oldfieldtype": "Button" "oldfieldtype": "Button",
"options": "Shipping Rule",
"print_hide": 1
}, },
{ {
"doctype": "DocField", "doctype": "DocField",

View File

@ -2,7 +2,7 @@
{ {
"creation": "2013-05-24 19:29:09", "creation": "2013-05-24 19:29:09",
"docstatus": 0, "docstatus": 0,
"modified": "2013-06-05 19:22:52", "modified": "2013-06-27 11:33:53",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@ -449,7 +449,7 @@
"doctype": "DocField", "doctype": "DocField",
"fieldname": "charge", "fieldname": "charge",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Taxes and Charges", "label": "Apply Taxes and Charges Master",
"oldfieldname": "charge", "oldfieldname": "charge",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"options": "Sales Taxes and Charges Master", "options": "Sales Taxes and Charges Master",
@ -463,10 +463,11 @@
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "get_charges", "fieldname": "shipping_rule",
"fieldtype": "Button", "fieldtype": "Link",
"label": "Get Taxes and Charges", "label": "Apply Shipping Rule",
"oldfieldtype": "Button", "oldfieldtype": "Button",
"options": "Shipping Rule",
"print_hide": 1, "print_hide": 1,
"read_only": 0 "read_only": 0
}, },