Fix translate purchase_receipt.js
diff --git a/stock/doctype/purchase_receipt/purchase_receipt.js b/stock/doctype/purchase_receipt/purchase_receipt.js
index 8775140..2438926 100644
--- a/stock/doctype/purchase_receipt/purchase_receipt.js
+++ b/stock/doctype/purchase_receipt/purchase_receipt.js
@@ -16,15 +16,15 @@
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 @@
}
}
else{
- alert("Please enter Item Code.");
+ alert(wn._("Please enter Item Code."));
}
}