Hi Team,
In Acumatica, on the Journal Transactions screen, there is a Customer/Vendor field that is currently disabled. I have enabled this field, and I want it to work the same way as the Vendor field in Bills and Adjustments.
In that screen, if a vendor has a branch restriction, the vendor does not appear in the selector when working in a different branch. I want the Customer/Vendor field in Journal Transactions to follow the same behavior.
I have tried several code approaches, but I am still not getting the expected result. Does anyone know how to correctly apply branch restriction to this field so that the selector only shows vendors/customers allowed for the current branch?
Any guidance or solution would be appreciated.
Thank you.
#region ReferenceID
[PXDBInt()]
[PXSelector(typeof(Search<BAccountR.bAccountID>), SubstituteKey = typeof(BAccountR.acctCD),
DescriptionField = typeof(BAccountR.acctName))]
[CustomerVendorRestrictor]
[PXUIField(DisplayName = "Customer/Vendor", Enabled = true, Visible = true)]
[PXCustomizeSelectorColumns(
typeof(PX.Objects.CR.BAccountR.acctCD),
typeof(PX.Objects.CR.BAccountR.acctName),
typeof(PX.Objects.CR.BAccountR.type),
typeof(PX.Objects.CR.BAccountR.vOrgBAccountID),
typeof(PX.Objects.CR.BAccountR.cOrgBAccountID),
typeof(PX.Objects.CR.BAccount.acctReferenceNbr),
typeof(PX.Objects.CR.BAccountR.parentBAccountID),
typeof(PX.Objects.CR.BAccount.ownerID),
typeof(PX.Objects.PJ.RequestsForInformation.CR.CacheExtensions.BAccountExt.isRelatedToProjectContact))]
public int? ReferenceID { get; set; }
#endregion

