mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-16 13:25:10 +00:00
fix: warehouse address filtered based on warehouse (#23381)
Co-authored-by: Marica <maricadsouza221197@gmail.com>
This commit is contained in:
@@ -24,6 +24,24 @@ frappe.ui.form.on('Stock Entry', {
|
||||
}
|
||||
});
|
||||
|
||||
frm.set_query('source_warehouse_address', function() {
|
||||
return {
|
||||
filters: {
|
||||
link_doctype: 'Warehouse',
|
||||
link_name: frm.doc.from_warehouse
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
frm.set_query('target_warehouse_address', function() {
|
||||
return {
|
||||
filters: {
|
||||
link_doctype: 'Warehouse',
|
||||
link_name: frm.doc.to_warehouse
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
frappe.db.get_value('Stock Settings', {name: 'Stock Settings'}, 'sample_retention_warehouse', (r) => {
|
||||
if (r.sample_retention_warehouse) {
|
||||
var filters = [
|
||||
|
||||
Reference in New Issue
Block a user