mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix: open Company Address on a Dunning, which has no items
(cherry picked from commit de8b58ae39)
This commit is contained in:
@@ -111,7 +111,7 @@ $.extend(erpnext.queries, {
|
||||
}
|
||||
|
||||
let filters = { link_doctype: "Company", link_name: doc.company || "" };
|
||||
const is_drop_ship = doc.items.some((item) => item.delivered_by_supplier);
|
||||
const is_drop_ship = (doc.items || []).some((item) => item.delivered_by_supplier);
|
||||
if (is_drop_ship) filters = {};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user