Scenario:
You want to automatically print paid invoices when adding the Incoming Payment.
Setup:
To get this working you will need to first create a UDF that keeps track of documents that have already been printed:
Next, run the SQL:
UPDATE OINV SET U_BOYX_PRINTED = 'Y'
To mark all existing documents as already printed.
Next, we need to create a few B1P&D configurations to handle the printing:
(Mass delivery that only selects unprinted invoices that have a payment)
(Report configuration that only do print using the RA-004 action)
(Report action that will print and then mark the document as printed afterward. RA-D004 is just a print action)
(Marks the document as printed so that it will not be included in future runs)
After creating the configurations we now want to automate the Mass delivery window. We want to select the fields so that the window looks like:
The id's used in the macro below is likely different from your system and you will need to correct them.
We want the macro to execute when we add an incoming payment using a B1 Validation:
When an incoming payment is added it now launches the mass delivery window, selects the configurations and then executes the print.
Comments
0 comments
Please sign in to leave a comment.