Delivery
Zone Hook (R-DLZONE.MAC) ![]()
Enterprise & Corporate Edition Only
This script files must be located in your CAPITAL program directory and must have the file name R-DLZONE.MAC.
This script is executed everytime CAPITAL needs to determine which zone to assign the orders from a sales order or back order invoice.
Entry Values
|
Variable |
Purpose |
|
Value1 |
Equals 1 if the current transaction is an invoice containing back ordered items. Equals 2 if the current transaction is a sales order. |
|
Orders->X |
You may query the contents of the sales order file if Value1 equals 2. |
|
Invoice->X |
You may query the contents of the invoice file if Value1 equals 1. |
|
Custrec->X |
You may query the contents of the fields in the customer record. |
Return Values
If the script returns a character string this is assigned to the back order as the zone code. Only the first 8 characters of the character string are used. If you do not wish to assign any zone code return an empty character string ("").
Returning any other value will result in the script hook being ignored. Standard zone matching will then proceed as normal.
Example
____________________________
Related Topics:
![]() |