Skip to content

Instantly share code, notes, and snippets.

@ste-bel
Last active December 15, 2021 22:48
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 ste-bel/ab5ca5e1b7c080a906b1c3075e05118a to your computer and use it in GitHub Desktop.
Save ste-bel/ab5ca5e1b7c080a906b1c3075e05118a to your computer and use it in GitHub Desktop.
/// <summary>
/// The identifier of the business account.</summary>
/// <remarks>This field is auto-incremental and not visible
/// This field is a surrogate key, as opposed to the natural key <see cref="AcctCD"/>.
/// </remarks>
[PXDBIdentity]
[PXUIField(Visible = false, Visibility = PXUIVisibility.Invisible, DisplayName = "Account ID")]
[PXReferentialIntegrityCheck]
public int? BAccountID { get; set; }
/// <summary>
/// The human-readable identifier of the business account that is
/// specified by the user or defined by the auto-numbering sequence during the
/// creation of the account. This field is a natural key, as opposed
/// to the surrogate key <see cref="BAccountID"/>.
/// </summary>
[PXDimensionSelector("BIZACCT", typeof(Search<BAccount.acctCD, Where<Match<Current<AccessInfo.userName>>>>), typeof(BAccount.acctCD), DescriptionField = typeof(BAccount.acctName))]
[PXDBString(30, IsUnicode = true, IsKey = true, InputMask="")]
[PXDefault]
[PXUIField(DisplayName = "Account ID", Visibility = PXUIVisibility.SelectorVisible)]
[PXFieldDescription]
[PXPersonalDataWarning]
public string AcctCD { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment