Cannot manually update the Production Labor Rate in QuoteOpr

Hi,

Could you help with this ?

I’m trying to update QuoteOpr.QtyPer using a server side code, with this BO object

Erp.Services.BO.QuoteAsmSvcFacade QuoteAssemblyBO = (Erp.Services.BO.QuoteAsmSvcFacade)Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.QuoteAsmSvcContract>(db);

foreach (QuoteOprRow dr in ds.QuoteOpr)
{
dr[“QtyPer”] = Convert.ToDecimal(QuoteDtlRow.Number03);
dr[“RowMod”] = “U”;
}

QuoteAssemblyBO.Update(ref ds);
I’m getting this error

{“Cannot manually update the Production Labor Rate in QuoteOpr.”}

Thank you,

When I get errors like this or similar, I usually start with Field Help or Data Dictionary to see if there are and special restrictions on the field. That assumes I’m already logged in as GSM and it’s not a permissions issue

Then, I go back to the business reasons for the change and evaluate what I’m trying to achieve. Sometimes Epicor has restrictions for a reason and I have to find a different way.

What’s the reason you want to update this field?

Also by the way… if you format your code for the forum it helps us old guys read it… :wink:

Hi,
I need to update this field, based on section changes in QuoteDtl
So I added this custom code in Update Data Directive of QuoteDtl

And what does the field help say about that field? I’m not near a computer today.

Have you done a trace to see what BO usually sets the value in that field?