From b3ab90a01a577a60a238e05fceaf40907c7d547e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 13 Apr 2012 12:38:34 +0530 Subject: [PATCH] field changes in sp return tool --- .../sales_and_purchase_return_tool.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/stock/doctype/sales_and_purchase_return_tool/sales_and_purchase_return_tool.js b/erpnext/stock/doctype/sales_and_purchase_return_tool/sales_and_purchase_return_tool.js index 771cb8272c..19cec92a2e 100644 --- a/erpnext/stock/doctype/sales_and_purchase_return_tool/sales_and_purchase_return_tool.js +++ b/erpnext/stock/doctype/sales_and_purchase_return_tool/sales_and_purchase_return_tool.js @@ -44,17 +44,17 @@ cur_frm.fields_dict.purchase_receipt_no.get_query = function(doc) { cur_frm.cscript.return_type = function(doc, cdt, cdn) { var cp = wn.control_panel; hide_field(['purchase_receipt_no', 'delivery_note_no', 'sales_invoice_no', - 'return_details', 'Get Items', 'Make Excise Invoice', 'Make Stock Entry', + 'return_details', 'get_items', 'Make Excise Invoice', 'Make Stock Entry', 'Make Debit Note', 'Make Credit Note']); if(doc.return_type == 'Sales Return') { - unhide_field(['delivery_note_no', 'sales_invoice_no', 'Get Items', + unhide_field(['delivery_note_no', 'sales_invoice_no', 'get_items', 'return_details', 'Make Credit Note', 'Make Stock Entry']); if(cp.country == 'India') { unhide_field(['Make Excise Invoice']); } } else if(doc.return_type == 'Purchase Return') { - unhide_field(['purchase_receipt_no', 'Get Items', 'return_details', + unhide_field(['purchase_receipt_no', 'get_items', 'return_details', 'Make Debit Note', 'Make Stock Entry']); if(cp.country == 'India') { unhide_field(['Make Excise Invoice']); }