![]() ![]() Shipment = WMSShipment::find(shipmentId) SalesFormLetter.parmLineIdSet(wmsShipmentSet.pack()) ![]() SalesFormLetter = SalesFormLetter_PackingSlip::newPackingSlip() Set wmsShipmentSet = new Set(Types::String) Source here, and note the non-recommended way of instantiating the SalesFormLetter class. SalesFormLetter.specQty(SalesUpdate::All) Įxample 2, using the WMSShipmentId (Shipment ID in the warehouse system) as the base for our packing slip. SalesFormLetter.chooseLinesQuery(queryRun) Query.dataSourceTable(tablenum(SalesTable)).addRange(fieldnum(SalesTable, SalesId)).value(strSalesTable) Query = new Query(QueryStr(SalesUpdate)) SalesFormLetter = SalesFormLetter::construct(DocumentStatus::PackingSlip) There are other parameters in the SalesFormLetter that can be used to avoid doing the heavy work of generating a query, such as relying on an array of Shipment IDs.Įxample 1, from Experts-Exchange. Note the requirement to call chooseLines after having associated the query, which incidentally is called 'SalesUpdate'. I have been investigating the use of the chooseLinesQuery parameter in order to create a packing slip from multiple sales order lines. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |