What parameters for Erp.Contracts.QuoteSvcContract.RecalcWorksheet?


In my method directive, I am trying to call Erp.Contracts.QuoteSvcContract.RecalcWorksheet.

void RecalcWorksheet(int quoteNum, int quoteLine, int qtyNum, ref QuoteTableset ds);

What is qtyNum referring to? Line quantities are Decimals in Epicor, but this is looking for an Integer. I have tried converting the line quantity to an integer and it works fine if quantity is 1. Anything else and I get the following error:

Business Layer Exception

Record not available

Exception caught in: Epicor.ServiceModel

Error Detail 
Description:  Record not available
Program:  Erp.Services.BO.Quote.dll
Method:  RecalcWorksheet
Line Number:  26386
Column Number:  21
Table:  QuoteQty

Client Stack Trace 
   at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets)
   at Erp.Proxy.BO.QuoteImpl.DuplicateQuote(Int32 sourceQuote, String sourceLines, Boolean mtlCosts, Boolean opStds)
   at Erp.Adapters.QuoteAdapter.DuplicateQuote(Int32 sourceQuote, String sourceLines, Boolean mtlCosts, Boolean opStds)

I believe it has to do with the Quote Quantity Breaks entries. It indicates which Quantity Break entry the Recalc method should perform on.


We don’t use the quantity breaks, so I will default these to 1.