Update stock_entry.js

This commit is contained in:
rohitwaghchaure 2021-05-24 11:53:27 +05:30 committed by GitHub
parent 795909fdcd
commit ce88c945cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -609,11 +609,11 @@ frappe.ui.form.on('Stock Entry', {
}
};
};
frm.trigger('set_tansit_warehouse');
frm.trigger('set_transit_warehouse');
}
},
set_tansit_warehouse: function(frm) {
set_transit_warehouse: function(frm) {
if(frm.doc.add_to_transit && frm.doc.purpose == 'Material Transfer' && !frm.doc.to_warehouse
&& frm.doc.from_warehouse) {
let dt = frm.doc.from_warehouse ? 'Warehouse' : 'Company';
@ -985,7 +985,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
},
from_warehouse: function(doc) {
this.frm.trigger('set_tansit_warehouse');
this.frm.trigger('set_transit_warehouse');
this.set_warehouse_in_children(doc.items, "s_warehouse", doc.from_warehouse);
},