MarkupTrans has records (type customer) which are related to the CustInvoiceJour and CustInvoiceTrans, this results in workfow errors whenever following method are called: parmSourceDocLineTypeEnumName, parmSourceDocLineTypeEnumValue
Does anyone has experience with this issue, are there any known hotfixes or solutions? We encounter this with AX2012 CU4.
public enumName parmSourceDocLineTypeEnumName()
{
enumName lineTypeEnum;
switch (this.TransTableId)
{
case tableNum(CustInvoiceTable):
lineTypeEnum = enumStr(SourceDocumentLine_CustomerInvoice);
break;
case tableNum(PurchLine):
lineTypeEnum = enumStr(SourceDocumentLine_ProductOrder);
break;
case tableNum(PurchTable):
lineTypeEnum = enumStr(SourceDocumentLine_ProductOrder);
break;
case tableNum(PurchReqLine):
lineTypeEnum = enumStr(SourceDocumentLine_ProductRequisition);
break;
case tableNum(VendInvoiceInfoTable):
case tableNum(VendInvoiceInfoSubTable):
case tableNum(VendInvoiceInfoLine):
case tableNum(VendInvoiceJour):
case tableNum(VendInvoiceTrans):
lineTypeEnum = enumStr(SourceDocumentLine_VendorInvoice);
break;
default:
throw error(Error::wrongUseOfFunction(funcName()));
}
return lineTypeEnum;
}