Printing PAcking Slip using X++

obewankenobeobewankenobe Member Posts: 3
edited 2008-10-16 in Dynamics AX
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,

Comments

Sign In or Register to comment.