I have the following auto-numbering selector defined in my custom DAC:
#region BatchID
[PXDBIdentity()]
public virtual int? BatchID { get; set; }
public abstract class batchID : PX.Data.BQL.BqlInt.Field<batchID> { }
#endregion
#region BatchCD
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
[PXUIField(DisplayName = "Batch ID")]
[AutoNumber(typeof(MXSetup.batchNumberingID), typeof(AccessInfo.businessDate))]
[PXSelector(typeof(MXBatch.batchID),
SubstituteKey = typeof(MXBatch.batchCD))]
public virtual string BatchCD { get; set; }
public abstract class batchCD : PX.Data.BQL.BqlString.Field<batchCD> { }
#endregion
The auto-numbering works well, but upon selecting an existing record, the displayed value immediately changes back to <NEW>
.
Does anyone have an idea why this would be happening?