From 77cd10b10a2c0a55b959e9f0d3ead64d2741e640 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 27 Jun 2013 12:17:30 +0530 Subject: [PATCH] [selling] added shipping rule link besides taxes master link field --- accounts/doctype/sales_invoice/sales_invoice.txt | 11 ++++++----- selling/doctype/quotation/quotation.txt | 11 ++++++----- selling/doctype/sales_common/sales_common.js | 2 +- selling/doctype/sales_order/sales_order.txt | 14 ++++++++------ stock/doctype/delivery_note/delivery_note.txt | 11 ++++++----- 5 files changed, 27 insertions(+), 22 deletions(-) diff --git a/accounts/doctype/sales_invoice/sales_invoice.txt b/accounts/doctype/sales_invoice/sales_invoice.txt index 27a0340f904..81b078528e1 100644 --- a/accounts/doctype/sales_invoice/sales_invoice.txt +++ b/accounts/doctype/sales_invoice/sales_invoice.txt @@ -2,7 +2,7 @@ { "creation": "2013-05-24 19:29:05", "docstatus": 0, - "modified": "2013-06-12 15:14:00", + "modified": "2013-06-27 11:35:29", "modified_by": "Administrator", "owner": "Administrator" }, @@ -432,7 +432,7 @@ "doctype": "DocField", "fieldname": "charge", "fieldtype": "Link", - "label": "Taxes and Charges", + "label": "Apply Taxes and Charges Master", "oldfieldname": "charge", "oldfieldtype": "Link", "options": "Sales Taxes and Charges Master", @@ -446,10 +446,11 @@ }, { "doctype": "DocField", - "fieldname": "get_charges", - "fieldtype": "Button", - "label": "Get Taxes and Charges", + "fieldname": "shipping_rule", + "fieldtype": "Link", + "label": "Apply Shipping Rule", "oldfieldtype": "Button", + "options": "Shipping Rule", "print_hide": 1, "read_only": 0 }, diff --git a/selling/doctype/quotation/quotation.txt b/selling/doctype/quotation/quotation.txt index 74a4396aef9..1a01e1645e2 100644 --- a/selling/doctype/quotation/quotation.txt +++ b/selling/doctype/quotation/quotation.txt @@ -2,7 +2,7 @@ { "creation": "2013-05-24 19:29:08", "docstatus": 0, - "modified": "2013-06-19 15:55:15", + "modified": "2013-06-27 11:31:49", "modified_by": "Administrator", "owner": "Administrator" }, @@ -420,7 +420,7 @@ "fieldname": "charge", "fieldtype": "Link", "hidden": 0, - "label": "Sales Taxes and Charges", + "label": "Apply Taxes and Charges Master", "oldfieldname": "charge", "oldfieldtype": "Link", "options": "Sales Taxes and Charges Master", @@ -434,11 +434,12 @@ }, { "doctype": "DocField", - "fieldname": "get_charges", - "fieldtype": "Button", + "fieldname": "shipping_rule", + "fieldtype": "Link", "hidden": 0, - "label": "Get Taxes and Charges", + "label": "Apply Shipping Rule", "oldfieldtype": "Button", + "options": "Shipping Rule", "print_hide": 1, "read_only": 0 }, diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js index 2d30601f26e..a027e9c4c15 100644 --- a/selling/doctype/sales_common/sales_common.js +++ b/selling/doctype/sales_common/sales_common.js @@ -368,7 +368,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ } }, - get_charges: function() { + charge: function() { var me = this; if(this.frm.doc.charge) { this.frm.call({ diff --git a/selling/doctype/sales_order/sales_order.txt b/selling/doctype/sales_order/sales_order.txt index dcb0306beb2..6bb1d265f62 100644 --- a/selling/doctype/sales_order/sales_order.txt +++ b/selling/doctype/sales_order/sales_order.txt @@ -2,7 +2,7 @@ { "creation": "2013-06-18 12:39:59", "docstatus": 0, - "modified": "2013-06-18 17:49:11", + "modified": "2013-06-27 11:31:02", "modified_by": "Administrator", "owner": "Administrator" }, @@ -450,7 +450,7 @@ "doctype": "DocField", "fieldname": "charge", "fieldtype": "Link", - "label": "Sales Taxes and Charges", + "label": "Apply Taxes and Charges Master", "oldfieldname": "charge", "oldfieldtype": "Link", "options": "Sales Taxes and Charges Master", @@ -463,10 +463,12 @@ }, { "doctype": "DocField", - "fieldname": "get_charges", - "fieldtype": "Button", - "label": "Get Taxes and Charges", - "oldfieldtype": "Button" + "fieldname": "shipping_rule", + "fieldtype": "Link", + "label": "Apply Shipping Rule", + "oldfieldtype": "Button", + "options": "Shipping Rule", + "print_hide": 1 }, { "doctype": "DocField", diff --git a/stock/doctype/delivery_note/delivery_note.txt b/stock/doctype/delivery_note/delivery_note.txt index 74a21b3a148..20e2196cb0c 100644 --- a/stock/doctype/delivery_note/delivery_note.txt +++ b/stock/doctype/delivery_note/delivery_note.txt @@ -2,7 +2,7 @@ { "creation": "2013-05-24 19:29:09", "docstatus": 0, - "modified": "2013-06-05 19:22:52", + "modified": "2013-06-27 11:33:53", "modified_by": "Administrator", "owner": "Administrator" }, @@ -449,7 +449,7 @@ "doctype": "DocField", "fieldname": "charge", "fieldtype": "Link", - "label": "Taxes and Charges", + "label": "Apply Taxes and Charges Master", "oldfieldname": "charge", "oldfieldtype": "Link", "options": "Sales Taxes and Charges Master", @@ -463,10 +463,11 @@ }, { "doctype": "DocField", - "fieldname": "get_charges", - "fieldtype": "Button", - "label": "Get Taxes and Charges", + "fieldname": "shipping_rule", + "fieldtype": "Link", + "label": "Apply Shipping Rule", "oldfieldtype": "Button", + "options": "Shipping Rule", "print_hide": 1, "read_only": 0 },