class SalesConfirmDPEventHandler
{
[PostHandlerFor(classStr(SalesConfirmDP), methodStr(SalesConfirmDP, processReport))]
public static void SalesConfirmDP_Post_processReport(XppPrePostArgs args)
{
MCRCustPaymTable custPaymTable;
SalesConfirmDP dpInstance = args.getThis() as SalesConfirmDP;
SalesTable salesTableLocal;
MCRCustPaymTableTmp custPaymTableTmp;
custPaymTableTmp = dpInstance.getMCRCustPaymTable();
salesTableLocal = SalesTable::find(dpInstance.parmCustConfirmJour().SalesId);
while select custPaymTable
where custPaymTable.RefTableId == salesTableLocal.TableId
&& custPaymTable.RefRecId == salesTableLocal.RecId
{
custPaymTableTmp.clear();
custPaymTableTmp.initValue();
custPaymTableTmp.TenderTypeId = custPaymTable.TenderTypeId;
custPaymTableTmp.TenderTypeName = custPaymTable.displayName();
custPaymTableTmp.Amount = custPaymTable.Amount;
custPaymTableTmp.insert();
}
}
}