10.2.300 Quote adapter can't update detail unit price

We are testing our upgrade from 10.1.500 to 10.2.300. The code does not throw any errors, but in 10.2.300 I can’t update the Quote detail unit price. This code works in 10.1.500

quoteAdapter.QuoteData.QuoteDtl[quoteAdapter.QuoteData.QuoteDtl.Count --1].DocExpUnitPrice = header.HeaderInfo.UnitPrice;
quoteAdapter.GetDtlUnitPriceInfo_User(true,true,false,true);
quoteAdapter.Update();

After calling quoteAdapter.GetDtlUnitPriceInfo_User the unit price changes to zero. Has the way you update Unit Price changed in 10.20.300?

If anyone runs into the same problem, I found the solution. In 10.1.500 Epicor uses DocExpUnitPrice to update the Unit Price, while in 10.2.300 Epicor uses DocDspExpUnitPrice.

Change

quoteAdapter.QuoteData.QuoteDtl[quoteAdapter.QuoteData.QuoteDtl.Count --1].DocExpUnitPrice = header.HeaderInfo.UnitPrice;

To

quoteAdapter.QuoteData.QuoteDtl[quoteAdapter.QuoteData.QuoteDtl.Count --1].DocDspExpUnitPrice = header.HeaderInfo.UnitPrice;

1 Like