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.