I am unable to post packing slip of sales order through x++ code in ax2012r3. I am using below code. when I changed document status to invoice. its working, it will create invoice for particular order. but when I put document status as packing Slip, its not doing anything not even throwing any error.
salesFormLetter = SalesFormLetter::construct(DocumentStatus::PackingSlip); salesFormLetter.update(SalesTable::find(‘SO0001589’),systemDateGet(), SalesUpdate::All,AccountOrder::None,false,false);