All Stock Receipted Hook (R-DELTR.MAC) ![]()
The script file must be located in your CAPITAL program directory and must have the file name R-DELTR.MAC.
This hook script can be used to monitor when a transaction that receives stock from a supplier has been fully processed. (All stock has been received from that supplier.)
Entry Values
|
Variable |
Purpose |
|
Mode |
The value of this variable determines which transaction has just been processed. 0 = Warehouse Manager Receiving 1 = Purchase Order Delivery 2 = Stock Receipt Transaction Created 3 = Import Costing Process |
|
Sorders->X |
The fields of the purchase order transaction but only if Mode = 0 or 1 or 3. |
|
Returns->X |
The fields of the stock receipt transaction but only if Mode = 2 |
Return Values
None.
Description
This hook is triggered when a purchase order's status is changed to fully delivered during a stock delivery process, or when a stock receipt is created and saved. In the case of purchase orders, this hook is launched when all items on a purchase order have been recognised as fully delivered. (No more items pending delivery). It is only invoked during a delivery process, such as delivering a purchase order, or receiving stock through the Warehouse Manager, or through an Import Costing process. It is not triggered when the purchase order status is changed manually by a user to 'Delivered'.
In the case of stock receipts, saving a stock receipt always results in the full delivery (receipt) of the items listed on that transaction. As a consequence this hook is always launched when a stock receipt is processed by the system.
Comments
This
script may be potentially launched during the operation of a Wireless Data Collection Unit. If you are
operating wireless Data Collectors, do not invoke any functions that would cause the system to pause and
display a message on your GUI. This will not be visible to the Data Collector and will cause the Data
Collector to stop operating.
____________________________
Related Topics:
![]() |