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',
|
objectType: 'orderItem',
|
||||||
required: true,
|
required: true,
|
||||||
columnWidth: 300,
|
columnWidth: 300,
|
||||||
showHyperlink: true
|
showHyperlink: true,
|
||||||
|
masterFilter: (objectData, parentData) => {
|
||||||
|
return {
|
||||||
|
orderType: parentData?.orderType,
|
||||||
|
order: parentData?.order?._id
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'invoiceQuantity',
|
name: 'invoiceQuantity',
|
||||||
@ -516,7 +522,13 @@ export const Invoice = {
|
|||||||
objectType: 'shipment',
|
objectType: 'shipment',
|
||||||
required: true,
|
required: true,
|
||||||
columnWidth: 300,
|
columnWidth: 300,
|
||||||
showHyperlink: true
|
showHyperlink: true,
|
||||||
|
masterFilter: (objectData, parentData) => {
|
||||||
|
return {
|
||||||
|
orderType: parentData?.orderType,
|
||||||
|
order: parentData?.order?._id
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'invoiceAmount',
|
name: 'invoiceAmount',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user