Although that PXDefault that I have defined in the DAC, works when I enter the data in the screen , it does not seem to work with an import scenario into the screen. I am importing from a CSV data provider.
It gives an error “value cannot be null” for the record that is missing a value (item-price)
Here is the DAC field:
#region ItemPrice
[PXDBDecimal()]
[PXUIField(DisplayName = "Item Price")]
[PXDefault(TypeCode.Decimal, "0.00",PersistingCheck = PXPersistingCheck.NullOrBlank)]
public virtual Decimal? ItemPrice { get; set; }
public abstract class itemPrice : PX.Data.BQL.BqlDecimal.Field<itemPrice> { }
#endregion