Hi Nieves,
I have found out the rooted cause, the Estimate field is only available for the transaction type (Fee or Expense).
===========================
case ProjCategoryType::Cost:
if (projCategory.SetupEstimate)
{
projCategory_ds.object(fieldNum(ProjCategory, ProjCategoryEmplOption)).allowEdit(false);
projCategory_ds.object(fieldNum(ProjCategory, TaxItemGroupId)).allowEdit(false);
projLinePropertyId.enabled(false);
}
else
{
projCategory_ds.object(fieldNum(ProjCategory, ProjCategoryEmplOption)).allowEdit(true);
projCategory_ds.object(fieldNum(ProjCategory, TaxItemGroupId)).allowEdit(true);
projLinePropertyId.enabled(true);
}
setupEstimate.allowEdit(projCategory.RecId==0);
setupSubscription.allowEdit(false);
setupCategory_Active.allowEdit(!projCategory.SetupEstimate);
break;
case ProjCategoryType::Revenue:
setupEstimate.allowEdit(true);
setupSubscription.allowEdit(true);
setupCategory_Active.allowEdit(true);
if (projCategory.SetupEstimate || projCategory.SetupSubscription)
{
projCategory_ds.object(fieldNum(ProjCategory, ProjCategoryEmplOption)).allowEdit(false);
projLinePropertyId.enabled(false);
//disable if record already saved and estimate or subscrition is marked
if (projCategory.RecId &&
projCategory.orig().SetupEstimate || projCategory.orig().SetupSubscription)
{
setupEstimate.allowEdit(false);
setupSubscription.allowEdit(false);
setupCategory_Active.allowEdit(false);
}
}
else
{
projCategory_ds.object(fieldNum(ProjCategory, ProjCategoryEmplOption)).allowEdit(true);
projLinePropertyId.enabled(true);
}
if (projCategory.SetupEstimate)
{
projCategory_ds.object(fieldNum(ProjCategory, TaxItemGroupId)).allowEdit(false);
}
==========================