I need to override the accountattribute so that it accepts inactive accounts, how do I do this, currently the restrictors I want to remove…..
[PXDBInt]
[PXInt]
[PXRestrictorAttribute(typeof(Where<Account.active, Equal<True>>), "Account is inactive.", new[] { })]
[PXRestrictorAttribute(typeof(Where<Where<Current<GLSetup.ytdNetIncAccountID>, IsNull, Or<Account.accountID, NotEqual<Current<GLSetup.ytdNetIncAccountID>>>>>), "YTD Net Income Account cannot be used in this context.", new[] { })]
[PXUIField(DisplayName = "Account", Visibility = PXUIVisibility.Visible, FieldClass = "ACCOUNT")]
public class AccountAttribute : AcctSubAttribute, IPXFieldVerifyingSubscriber, IPXRowPersistingSubscriber
{
public const string DimensionName = "ACCOUNT";
public AccountAttribute();