From d538f1249f055c148e161c61a912fed327ca2805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1rbara=20Perretti?= Date: Thu, 3 Oct 2013 14:18:12 -0300 Subject: [PATCH] Fix translate purchase_receipt.js --- stock/doctype/purchase_receipt/purchase_receipt.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stock/doctype/purchase_receipt/purchase_receipt.js b/stock/doctype/purchase_receipt/purchase_receipt.js index 8775140a8bd..24389260cae 100644 --- a/stock/doctype/purchase_receipt/purchase_receipt.js +++ b/stock/doctype/purchase_receipt/purchase_receipt.js @@ -16,15 +16,15 @@ erpnext.stock.PurchaseReceiptController = erpnext.buying.BuyingController.extend if(this.frm.doc.docstatus == 1) { if(!this.frm.doc.__billing_complete) { - cur_frm.add_custom_button('Make Purchase Invoice', + cur_frm.add_custom_button(wn._('Make Purchase Invoice'), this.make_purchase_invoice); } - cur_frm.add_custom_button('Send SMS', cur_frm.cscript['Send SMS']); + cur_frm.add_custom_button(wn._('Send SMS'), cur_frm.cscript['Send SMS']); this.show_stock_ledger(); this.show_general_ledger(); } else { - cur_frm.add_custom_button(wn._('From Purchase Order'), + cur_frm.add_custom_button(wn._(wn._('From Purchase Order')), function() { wn.model.map_current_doc({ method: "buying.doctype.purchase_order.purchase_order.make_purchase_receipt", @@ -139,7 +139,7 @@ cur_frm.fields_dict['purchase_receipt_details'].grid.get_field('batch_no').get_q } } else{ - alert("Please enter Item Code."); + alert(wn._("Please enter Item Code.")); } }