Dears,
i am importing Sales orders from shopify to D365 call center (back office), using the below code i am submitting the payment method (complete button on form)
MCRSalesOrderTotals mcrSalesOrderTotals = new MCRSalesOrderTotals(salesTable, true);
MCREndOrder::endOrder(salesTable.SalesId, true, mcrSalesOrderTotals, false);
and using the below code i am invoicing the SO
SalesFormLetter = SalesFormLetter::construct(DocumentStatus::Invoice);
SalesFormLetter.update(SalesTable,systemDateGet(), SalesUpdate::All, AccountOrder::None, false, false);
so far all is working correctly, but when i click on voucher transactions--> View Settlements the invoiced is not settled but while creating manually a sales order it comes settled.
is there anything missing in my code? i tried the code in this Settle Trx in AX with no luck.