Hi All,
I have customized the AX Pro forma Invoice Report. Th Site BatchNo, Warehouse, Sales Qty has been fetched from the following statement.
salesQty = UnitConvert::qty( inventReportDimHistory.Qty,
custInvoiceTrans.inventTable().inventUnitId(),
custInvoiceTrans.SalesUnit,
custInvoiceTrans.ItemId);
return element.design().lookupLabel(literalstr("@SYS14578")) + strfmt(' : %1',salesQty ) + ' ' +
FormLetter::inventDimReport(inventReportDimHistory.inventDim(), inventDimSetup, element.design());
My requirement is to retrieve the same from custPackingSlipTrans table instead of custInvoiceTrans table.
Is it possible to manipulate this by telling the InventReportDimHistory or InvenDimSetup to look in custPackingSlipTrans table ?
Please note that there could be more than one line returned as there can be manypacking slips per invoice.Hence would I need to iterate the results into a string ?
Your guidance is well appreciated!
Homer