Customized decimal type field generates error after being published.
I've tried many different syntaxes, if isnull(), etc and for some reason I am not thinking to try the right one.
if (tran != null && tran.TranLineNbr != null &&
arTran != null && arTran.TranType == tran.TranType &&
arTran.RefNbr == tran.RefNbr && arTran.LineNbr == tran.TranLineNbr)
{
decimal? amtOrg = arTran.GetExtension<ARTranExt>().UsrDLYAMTORG;
tran.GetExtension<GLTranExt>().UsrDLYAMTORG = amtOrg;
}
The value on release should go from Ar to Gl. All the other custom fields work, but not the decimal.
"Error: An error occurred during processing of the field Original Amount. Specified cast is not valid."