got the following error while trying to create a P.O
" Function ProjBudgetTransactionLine_Virtual::construct has been incorrectly called."
* the function in question
public static ProjBudgetTransactionLine construct(
ProjTransType _transType,
TransDate _transDate,
ProjTransIdBase _transId,
ProjId _projId,
ProjCategoryId _categoryId,
Qty _quantity,
CurrencyCode _costAmountCurrencyCode,
CostAmount _costAmount,
CurrencyCode _salesAmountCurrencyCode,
SalesAmount _salesAmount,
RefRecId _sourceDocumentLine,
ProjActivityNumber _projActivityNumber = '',
ProjLinePropertyId _projLinePropertyId = ''
)
{
ProjBudgetTransactionLine_Virtual projBudgetTransactionLine_Virtual = new ProjBudgetTransactionLine_Virtual();
if (!_transDate ||
!_projId ||
!_categoryId ||
(_transType != ProjTransType::Revenue && !_costAmountCurrencyCode) ||
!_salesAmountCurrencyCode ||
!_sourceDocumentLine)
{
throw error(strFmt("@SYS22828", funcName()));
}
projBudgetTransactionLine_Virtual.parmTransType(_transType);
projBudgetTransactionLine_Virtual.parmTransDate(_transDate);
projBudgetTransactionLine_Virtual.parmTransId(_transId);
projBudgetTransactionLine_Virtual.parmProjId(_projId);
projBudgetTransactionLine_Virtual.parmCategoryId(_categoryId);
projBudgetTransactionLine_Virtual.parmCostAmountCurrencyCode(_costAmountCurrencyCode);
projBudgetTransactionLine_Virtual.parmSalesAmountCurrencyCode(_salesAmountCurrencyCode);
projBudgetTransactionLine_Virtual.parmQty(_quantity);
projBudgetTransactionLine_Virtual.parmCostAmount(_costAmount);
projBudgetTransactionLine_Virtual.parmSalesAmount(_salesAmount);
projBudgetTransactionLine_Virtual.parmTransIdRef('');
projBudgetTransactionLine_Virtual.parmProjActivityNumber(_projActivityNumber);
projBudgetTransactionLine_Virtual.parmSourceDocumentLine(_sourceDocumentLine);
projBudgetTransactionLine_Virtual.parmLinePropertyId(_projLinePropertyId);
return projBudgetTransactionLine_Virtual;
}
*This post is locked for comments