Hi,
I am new to AX. I am trying to write a script that when called would process a sales order, setting the status to delivered and print out a packing slip on the default printer. I tried the following, but with no success:
mysalesFormLetter = SalesFormLetter::construct(DocumentStatus::PackingSlip);
sale = SalesTable::find(PickingRoute_ds.transRefId);
ttsBegin;
mysalesFormLetter.update(sale, systemDateGet(), SalesUpdate::DeliverNow, AccountOrder::None);
ttsCommit;
return "Complete!";
Any help would be much appreciated.
Kind Regards,
0
Comments
http://www.microsoft.com/Businesssoluti ... &sloc=&p=1