2 things:
1a. During S/O Printing, if M/D is an option, there's a nice hook in the post process routine when PrintSalesOrders sets to N and SalesOrderPrinted sets to Y. You could create your own checkbox UDF called UDF_SOPrinted on SO Header. The MD routine would set UDF_SOPrinted = Y for you. Then in Pick Sheet printing you set UDF_SOPrinted = Y in the selection grid.
1b. Another M/D option is to just add standard SalesOrderPrinted field to Selection grid and default it to Y. For that matter if it's a hard rule, then don't even add to Selection grid but rather override SO_PickingSheetPrinting_rpt.pvc program so it is part of the default selection.
2. There's no hook for scripting except 1
imperfect one if they don't mind quick printing the order:
* Create UDF_SOPrinted checkbox
* Create your own quick print scripted button so they can click on that.
retVal = oBusObj.SetValue("UDF_SOPRINTED$", "Y")
oScript.InvokeButton("BT_QUICKPRINT")
But once it clicks the real Quick Print button for you, you will get a
Do you want to save? with Yes / Cancel buttons for a new order and for existing order same prompt with Yes / No / Cancel buttons. If you always click Yes here, then this will work out. In Pick Sheet Printing, just set UDF_SOPrinted = Y on the grid and print. But if they ever click Cancel or No then it won't work out. Of course if they don't even Quick Print orders today (they use the menu), it won't work out at all. Not clean.
------------------------------
Alnoor Cassim
Free Agent Developer and Consultant
CallForHelp.biz
Email:
alnoor@callforhelp.bizOrange County, CA
------------------------------
Original Message:
Sent: 08-28-2019 10:28
From: Michelle Taylor
Subject: Picking Sheet Printing
What if you test for the SO Print checkbox that's on the SO Header? Of course, that would have to be added to the worktable for the proper testing to be added to the form.
------------------------------
Michelle Taylor
ERP Consulting Manager, CS3 Technology
918-388-9772
------------------------------