Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Crete sales line item at the time of packing slip

$
0
0

Hi ,

Here i am updating the current status..

Please any one help to resolve this.

void ..()

{

...

;

   salesLine.clear();

   salesLine.SalesId = salesTable.SalesId;

   salesLine.ItemId  = "CL-100-B-D";    //your item id from form

   salesLine.SalesQty = 2;     //your qty from form

   salesLine.createLine(true, true, true, true, true, true);

   salesFormLetter =         SalesFormLetter::construct(DocumentStatus::PackingSlip);

   salesFormLetter.update(

   salesTable,

   systemdateget(),

   SalesUpdate::All,

   AccountOrder::None,

   NoYes::No,

   NoYes::No,

   false

   );

   SalesParmUpdate_ds.reread();

   SalesParmUpdate_ds.research();

   SalesParmLine_ds.reread();

   SalesParmLine_ds.research();

}

From the above code,

The Sales Line was created(salesLine.createLine()) successfully . Then i want the same line should be in packing slip. For that i used SalesFromLetter.Update() method. The Update method directly posting the sales order. After that i cant able to post the invoice.

Can anyone help to create a packing slip line with out posting.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>