
[ExtensionOf(classStr(SalesInvoiceDP))]
final class ABCSalesInvoiceDP_Extension
{
public void generateInvoiceRelatedInformation(CustInvoiceJour _custInvoiceJour)
{
next generateInvoiceRelatedInformation(_custInvoiceJour);
if (_custInvoiceJour.isProforma())
{
this.abcPopulateSomeItems(_custInvoiceJour);
}
}
private void abcPopulateSomeItems(CustInvoiceJour _custInvoiceJour)
{
SalesTable salesTable = _custInvoiceJour.salesTable();
SalesLine SalesLine;
InventTable InventTable;
CustInvoiceTrans custInvoiceTransBuffer;
while select SalesLine
where SalesLine.Field == SomeValue
{
custInvoiceTransBuffer.clear();
custInvoiceTransBuffer.initValue();
custInvoiceTransBuffer.initFromCustInvoiceJour(_custInvoiceJour);
custInvoiceTransBuffer.initFromSalesLine(SalesLine);
this.insertIntoSalesInvoiceTmp(_custInvoiceJour, custInvoiceTransBuffer, null, null, null, null);
}
}
}