Skip to content

Instantly share code, notes, and snippets.

@tocohara
Created December 29, 2022 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tocohara/61259a538efab2a83874f9598eea771a to your computer and use it in GitHub Desktop.
Save tocohara/61259a538efab2a83874f9598eea771a to your computer and use it in GitHub Desktop.
Lead Declaration
[Serializable]
[PXBreakInheritance]
[PXCacheName(Messages.Lead)]
[PXTable(typeof(CR.Contact.contactID))]
[CRCacheIndependentPrimaryGraph(
typeof(LeadMaint),
typeof(Select<CRLead,
Where<CRLead.contactID, Equal<Current<CRLead.contactID>>>>))]
[PXGroupMask(typeof(LeftJoinSingleTable<BAccount, On<BAccount.bAccountID, Equal<CRLead.bAccountID>>>),
WhereRestriction = typeof(Where<BAccount.bAccountID, IsNull, Or<Match<BAccount, Current<AccessInfo.userName>>>>))]
public class CRLead : Contact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment