On a PO, I can't seem to get a PO Line's Account field (ExpenseAcctID) to persist. The value appears in the UI normally, and when I check the value in the FieldUpdated, RowUpdated, and RowPersisted handlers, the field actually has a value. Somehow it's not persisting to the db. The field was customized as shown below. The field in the .ASPX is specified as a PXSelector. Any ideas?
[PXMergeAttributes(Method = MergeMethod.Replace)]
[PXRestrictor(typeof(Where<Account.active, Equal<True>>), PX.Objects.GL.Messages.AccountInactive)]
[PXRestrictor(typeof(Where<Where<Current<GLSetup.ytdNetIncAccountID>, IsNull,
Or<Account.accountID, NotEqual<Current<GLSetup.ytdNetIncAccountID>>>>>), PX.Objects.GL.Messages.YTDNetIncomeSelected)]
[PXDimensionSelector(AccountAttribute.DimensionName,
typeof(SearchFor<Account.accountID>
.In<SelectFrom<Account>
.LeftJoin<PMBudget>.On<Account.accountGroupID.IsEqual<PMBudget.accountGroupID>>
.Where<
Where<POLine.lineType.FromCurrent.IsEqual<POLineType.nonStock>
.And<Where<PMBudget.projectID.IsEqual<POLine.projectID.FromCurrent>
.And<Where<PMBudget.projectTaskID.IsEqual<POLine.taskID.FromCurrent>
.And<Where<PMBudget.costCodeID.IsEqual<POLine.costCodeID.FromCurrent>
.And<Where<PMBudget.curyRevisedAmount.IsGreater<Zero>
.And<Where<PMBudget.accountGroupID.IsNotNull>
>>>>>>>>>
.Or<Where<POLine.lineType.FromCurrent.IsNotEqual<POLineType.nonStock>
.Or<Where<POLine.projectID.FromCurrent.IsNull
.Or<Where<POLine.taskID.FromCurrent.IsNull
.Or<Where<POLine.costCodeID.FromCurrent.IsNull
>>>>>>>>>>
.AggregateTo<GroupBy<Account.accountID>>
.OrderBy<Account.accountCD.Asc>>),
typeof(Account.accountCD),
new Type[] { typeof(Account.accountCD), typeof(Account.description), typeof(Account.accountGroupID), typeof(PMBudget.curyRevisedAmount),
typeof(PMBudget.projectID), typeof(PMBudget.projectTaskID), typeof(PMBudget.costCodeID) },
DescriptionField = typeof(Account.description),
Filterable = false
)]
[PXDefault(PersistingCheck = PXPersistingCheck.Nothing)]
[PXUIField(DisplayName = "Account", Visibility = PXUIVisibility.Visible)]
protected void POLine_ExpenseAcctID_CacheAttached(PXCache cache)
{
}