fix translate stock_entry.js
diff --git a/stock/doctype/stock_entry/stock_entry.js b/stock/doctype/stock_entry/stock_entry.js
index 4695fdb..e451f89 100644
--- a/stock/doctype/stock_entry/stock_entry.js
+++ b/stock/doctype/stock_entry/stock_entry.js
@@ -67,10 +67,10 @@
if(this.frm.doc.docstatus === 1 &&
wn.boot.profile.can_create.indexOf("Journal Voucher")!==-1) {
if(this.frm.doc.purpose === "Sales Return") {
- this.frm.add_custom_button("Make Credit Note", function() { me.make_return_jv(); });
+ this.frm.add_custom_button(wn._("Make Credit Note"), function() { me.make_return_jv(); });
this.add_excise_button();
} else if(this.frm.doc.purpose === "Purchase Return") {
- this.frm.add_custom_button("Make Debit Note", function() { me.make_return_jv(); });
+ this.frm.add_custom_button(wn._("Make Debit Note"), function() { me.make_return_jv(); });
this.add_excise_button();
}
}
@@ -191,7 +191,7 @@
add_excise_button: function() {
if(wn.boot.control_panel.country === "India")
- this.frm.add_custom_button("Make Excise Invoice", function() {
+ this.frm.add_custom_button(wn._("Make Excise Invoice"), function() {
var excise = wn.model.make_new_doc_and_get_name('Journal Voucher');
excise = locals['Journal Voucher'][excise];
excise.voucher_type = 'Excise Voucher';
@@ -307,7 +307,7 @@
}
}
} else {
- msgprint("Please enter Item Code to get batch no");
+ msgprint(wn._("Please enter Item Code to get batch no"));
}
}
@@ -356,7 +356,7 @@
cur_frm.cscript.validate_items = function(doc) {
cl = getchildren('Stock Entry Detail',doc.name,'mtn_details');
if (!cl.length) {
- alert("Item table can not be blank");
+ alert(wn._("Item table can not be blank"));
validated = false;
}
}