Update stock_entry.js
This commit is contained in:
parent
795909fdcd
commit
ce88c945cd
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user