generate/cbs2.gif Stock Item Price Management Hook (R-SPITEM.MAC) generate/enh73.jpg


 

This script file must be located in your CAPITAL program directory or company data subdirectory and must have the file name R-SPITEM.MAC

Entry Values

Variable

Purpose

Mode

0 = the price rule is being edited.

1 = the price rule is being added.

AllLocations

Contains the value TRUE if the price rule has been set to apply to product items at all locations.

AllDepartments

Contains the value TRUE if the price rule has been set to apply to transactions assigned to any sales department.

AccountCode

The customer account code.

ProductCode

The stock item product code.

Quantity

The quantity break value.

FromDate

The from or start date.

ToDate

The to or end date.

Unit

The unit price.

List

The list price.

DiscName

The discount name.

Stock->

Stock control fields.

Staux000->

Stock control user fields (if applicable).

Return Values

Return FALSE to cancel the addition or editing of the rule.

Description

The script R-SPITEM.MAC is executed after a Stock Item Prices rule is added to the system or edited. It is useful for displaying warning or caution messages after users enter new rules, or for refusing the entry of rules for specific reasons, e.g., if a discounted price is too low.

____________________________

Related Topics:

Customer Stock Item Pricing

Scripting Hooks

Script Programming



Help Topic Map