Add masterFilter functionality to Invoice model for orderType and order ID context in object properties
This commit is contained in:
parent
092b9ff4e4
commit
8f25a8491d
@ -402,7 +402,13 @@ export const Invoice = {
|
||||
objectType: 'orderItem',
|
||||
required: true,
|
||||
columnWidth: 300,
|
||||
showHyperlink: true
|
||||
showHyperlink: true,
|
||||
masterFilter: (objectData, parentData) => {
|
||||
return {
|
||||
orderType: parentData?.orderType,
|
||||
order: parentData?.order?._id
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'invoiceQuantity',
|
||||
@ -516,7 +522,13 @@ export const Invoice = {
|
||||
objectType: 'shipment',
|
||||
required: true,
|
||||
columnWidth: 300,
|
||||
showHyperlink: true
|
||||
showHyperlink: true,
|
||||
masterFilter: (objectData, parentData) => {
|
||||
return {
|
||||
orderType: parentData?.orderType,
|
||||
order: parentData?.order?._id
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'invoiceAmount',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user