Hi,
Today i am going to show you how to create/post sales order invoice in x++
static void createPostSalesOrderInvoice(Args _args)
{
SalesFormLetter salesFormLetter;
salesFormLetter=SalesFormLetter::construct(DocumentStatus::Invoice);
salesFormLetter.update(SalesTable::find('SO-ASC0001'));
info(strFmt("%1 Sales Order Posted and Final Status is Invoiced",salesTable.SalesId));
}
now run this job
No comments:
Post a Comment