Hi All,
I need to generate Picking list on the batch job automatically by selected query. Like add Shipping date range today..today+2
I found this example:
static void SalesOrder_UpdatePickingList(Args _args)
{
SalesFormLetter_PickingList salesFormLetter;
SalesTable salesTable = salesTable::find('SO-101292');
;
salesFormLetter = SalesFormLetter_PickingList::newPickingList();
salesFormLetter.transDate(systemDateGet());
salesFormLetter.update(salesTable,
systemdateget(),
SalesUpdate::All,
AccountOrder::None,
NoYes::No,
NoYes::No);
}
But on this example I can't specify what kind lines I want to add to the SO picking list.
I need filter Sales Lines by some ranges and add it to the Picking List.
Next day when Batch job will run and will find new lines by selected query ranges need to add to another picking list and so on.
Is there other example where I can specify which lines I want to see on the picking list?
*This post is locked for comments
Sorry, I tried to google, but all solutions was not that what I was looking for. And it was not showing this thread.
Thanks for the reference to that post. It helped to me.
You can override the query with the chooseLinesQuery() method on the salesFormLetter. This question has been asked multiple times in the forum and there are answers too, try using Search on the top next time.
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156