Fix translate Sales_Common.js
This commit is contained in:
parent
97bf1f79db
commit
4098c2675f
@ -70,7 +70,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
this.frm.set_query("batch_no", this.fname, function(doc, cdt, cdn) {
|
this.frm.set_query("batch_no", this.fname, function(doc, cdt, cdn) {
|
||||||
var item = wn.model.get_doc(cdt, cdn);
|
var item = wn.model.get_doc(cdt, cdn);
|
||||||
if(!item.item_code) {
|
if(!item.item_code) {
|
||||||
wn.throw("Please enter Item Code to get batch no");
|
wn.throw(wn._("Please enter Item Code to get batch no"));
|
||||||
} else {
|
} else {
|
||||||
if(item.warehouse) {
|
if(item.warehouse) {
|
||||||
return {
|
return {
|
||||||
@ -632,12 +632,12 @@ var set_sales_bom_help = function(doc) {
|
|||||||
$(cur_frm.fields_dict.packing_list.row.wrapper).toggle(true);
|
$(cur_frm.fields_dict.packing_list.row.wrapper).toggle(true);
|
||||||
|
|
||||||
if (inList(['Delivery Note', 'Sales Invoice'], doc.doctype)) {
|
if (inList(['Delivery Note', 'Sales Invoice'], doc.doctype)) {
|
||||||
help_msg = "<div class='alert alert-warning'> \
|
help_msg = "<div class='alert alert-warning'>" +
|
||||||
For 'Sales BOM' items, warehouse, serial no and batch no \
|
wn._("For 'Sales BOM' items, warehouse, serial no and batch no \
|
||||||
will be considered from the 'Packing List' table. \
|
will be considered from the 'Packing List' table. \
|
||||||
If warehouse and batch no are same for all packing items for any 'Sales BOM' item, \
|
If warehouse and batch no are same for all packing items for any 'Sales BOM' item, \
|
||||||
those values can be entered in the main item table, values will be copied to 'Packing List' table. \
|
those values can be entered in the main item table, values will be copied to 'Packing List' table.")+
|
||||||
</div>";
|
"</div>";
|
||||||
wn.meta.get_docfield(doc.doctype, 'sales_bom_help', doc.name).options = help_msg;
|
wn.meta.get_docfield(doc.doctype, 'sales_bom_help', doc.name).options = help_msg;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user