For these specific DACs:
ARInvoice, ARPayment, ARCashSale, PMProject, PMQuote and PMTran
I need to figure out how to hard-code around the existing lookup on the CustomerId or BaccountId (whether attribute based or uses PXSelector) to exclude or restrict selection of customers that are parent customers. eg. exists (Select ParentBaccountId from Baccount where ParentBaccountId = this.BaccountId)
I’m not sure how best to accomplish this. My first thought is add a computed field (non-persistent) to Customer or BAccount called IsParent that runs the above query to return a boolean. Then use that in PXRestrictor wherever we need to prevent the selection of these customers.
Unfortunately, it doesn’t look like I can make it generic by creating my own attribute as it appears there are different attributes and methods on these foreign keys already being used.
Any ideas?