Invoice Rules Dialog
Table Of Contents
Invoice Rules let you control how Sales Orders move through the Sales Invoice Manager based on criteria such as order value, fulfilment, customer classification, Sales Source, Invoice Priority and courier.
When an order is assessed, Khaos Control works through the configured rules in priority order. It applies the first rule where all configured criteria match. Invoice Rules are only applied to stages where Processing Rules are enabled in[ Sales Invoice Manager | Other Actions Menu | Edit Process Path ].
Warning: Opening and editing Invoice Rules requires Admin User permission. Edit Invoice Rules is an administrative function in the Sales Invoice Manager.
Understanding the rule hierarchy
The order of your Invoice Rules is important.
Khaos Control starts with the highest-priority rule. If the order meets all criteria configured for that rule, Khaos Control applies its result and stops checking subsequent user-defined rules.
If the rule does not match, Khaos Control moves to the next rule. If none of the user-defined rules match, the order continues to the relevant system rules.
For more information, see How To: Understand what triggers invoice rules.
Important: Once an invoice has been placed in Manual Hold, Invoice Rules cannot automatically release it. A user must move it out manually.
Viewing the hierarchy correctly
To make sure you are seeing the rules in their actual priority order:
- Make sure the grid is not sorted.
- To reset the grid, press Ctrl+E or select Reset from the Grid menu.
Order of Manual Hold, Terms Hold and postcode rules
There are some additional priorities to consider:
- When Sales Orders are imported, user-defined Manual Hold rules take precedence over Terms Hold rules. The expectation is that the manual review will include terms checking and validation.
- Terms Hold conditions are checked before postcode rules. If an order meets both conditions, it moves to Terms Hold before a postcode-based Manual Hold substage.
Processing Rules
Processing Rules contain three main areas:
- Edit buttons, used to add, remove and prioritise rules.
- Triggers, which define the conditions an order must meet.
- Result, which defines what happens when all the configured conditions are met.
Example rules
You could configure rules such as:
- If the order value is £500 or more and the customer belongs to the Retail classification, move the order to Manual Hold | Over £500 Retail.
- If fulfilment is between 80% and 100% and the customer belongs to the Trade classification, release the order.
- If the order has been waiting for more than 20 days and its Invoice Priority is Urgent, release it.
- If the order value exceeds £10,000, despatch is due within 0 to 5 days, and the customer belongs to the Business classification, release it.
- If fulfilment is between 40% and 80%, the value exceeds £1,000, there is more than 1 previous invoice, the order has been waiting for more than 14 days, and the customer belongs to Trade, release it.
Because the rules are evaluated in order, place your most important or specific rules at the appropriate point in the hierarchy.
Edit buttons
The buttons in the Invoice Rules grid allow you to:
- Add a new Invoice Rule.
- Delete the current rule, or all green-selected rules.
- Move Up to increase the priority of the current rule.
- Move Down to decrease its priority.
Triggers
Triggers define the criteria that Khaos Control compares against the Sales Order.
Net Value (Ex Del)
Use Net Value (Ex Del) to create a rule based on the Sales Order's net total value, excluding delivery.
- Low: The order value must be equal to or greater than this amount.
- High: The order value must be equal to or less than this amount.
If you enter a Low value but leave High blank, there is effectively no upper limit.
Note: If the rule is based only on value, enter a Low value of at least 0.01. If both Low and High are blank, order value is not considered.
The value is based on the total of the Net Tot column in the[ Sales Orders ] grid.
Fulfilment %
Use Fulfilment % to apply a rule according to how much of the Sales Order can be fulfilled.
- Low: Fulfilment must be equal to or greater than this percentage.
- High: Fulfilment must be equal to or less than this percentage.
If both values are blank, fulfilment is not considered.
Important: Do not enter a High percentage that is lower than the Low percentage.
Invoice Waiting/Due Despatch
These options let you create rules based on how long an invoice has been waiting or how many days remain until despatch.
Inv/Desp determines which calculation is used:
- Unticked: Low and High relate to the number of days the invoice has been waiting.
- Ticked: Low and High relate to the number of days until the invoice is due for despatch.
NWD Inc controls whether non-working days are included:
- Unticked: All days are counted, including weekends and configured non-working days.
- Ticked: Only working days are counted.
When NWD Inc is ticked, weekends are excluded by default unless Allow Saturday delivery dates is enabled in[ System Operations | Edit System Values | Options | Order Delivery ]. User-defined non-working days in[ System Data | Others | Non-Working Days ] are also excluded.
Prev Inv Count
Use Prev Inv Count to create a rule based on the customer's number of previous invoices.
- Low: Previous invoice count must be equal to or greater than this number.
- High: Previous invoice count must be equal to or less than this number.
A value of 0 is ignored.
Comp Class
Use Comp Class to restrict a rule to customers belonging to a particular Customer Classification.
Customer Classifications are maintained in:
[ System Data | Company | Company Classes ]
Focus on the Comp Class cell and press F4 to select a classification.
Leave this blank if the rule should apply regardless of Customer Classification.
Sales Source
Use Sales Source when a rule should apply only to Sales Orders from a particular source.
Sales Sources are maintained in:
[ System Data | Sales | Source ]
A Sales Source can be assigned manually or automatically when orders are imported from supported sales channels.
Leave the field blank if the rule should apply to all Sales Sources.
Invoice Priority
Use Invoice Priority to restrict a rule to Sales Orders with a particular priority.
Invoice Priorities are maintained in:
[ System Data | Sales Order Processing | Invoice Priorities ]
Courier
Use Courier to restrict the rule to Sales Orders assigned to a particular courier.
The courier must be set against the Sales Order for the rule to recognise it.
Important: If you later select a different courier in the Sales Invoice Manager's Shipping stage, that alternative courier is not used when evaluating this rule.
Drop-Ship
Tick Drop-Ship when the rule should apply to Drop-Ship Sales Orders.
It is unticked by default.
First Order
Use First Order to control whether the rule applies to a customer's first order:
- Not applicable: Ignore whether this is the customer's first order.
- Yes: Apply the rule only to their first order.
- No: Exclude their first order and apply the rule only to subsequent orders.
Invoice Rule For
The Import and Process Path settings control when the rule is evaluated.
Depending on their configuration, a rule can:
- Apply to Sales Orders regardless of import status.
- Not be checked against Sales Orders.
- Apply only while an order is being imported.
- Be excluded during import but apply after the imported order is in Khaos Control, for example when orders are reassessed later.
Note: The Import and Process Path settings can only be changed by Khaos Control. Email Support if these settings need changing.
Result
The Result determines what happens when a Sales Order meets every applicable trigger on the rule.
Action
Choose one of the following:
- Awaiting Date: Moves the order to Future | Awaiting Date.
- Awaiting Stock: Moves the order to Future | Awaiting Stock.
- Manual Hold: Moves the order to Future | Manual Hold.
- No Action: The rule matches, but Khaos Control performs no special movement or action.
- Release: Moves the order to Orders | Released.
Important: Orders moved into Manual Hold by an Invoice Rule are not automatically released. They must be moved out manually.
Manual Hold Substage
When Action is set to Manual Hold, you can also select a specific substage.
This includes system-defined and user-created substages.
For help creating one, see How To: Add a New Stage to Manual Hold.
System-defined examples include:
- Cheque Problems
- Credit Card Problems
Terms Enforcement
Terms Enforcement can hold Sales Orders for account customers who exceed configured credit or payment terms. Account payment terms and credit limits are maintained against the customer's Financial record.
Terms Enforcement can also apply postcode-based controls.
Credit limit
Enable Hold an order when a customer is X% over their credit limit to move an account customer's order into Terms Hold when they exceed their credit limit by the configured percentage.
Overdue invoices
Enable Hold an order when a customer is X days overdue on an invoice to place orders into Terms Hold when an account customer's invoice has exceeded their configured payment terms by the specified number of days.
Important: Entering 0 days means the rule is applied at zero days, effectively holding all applicable orders.
Unassign stock from Terms Hold orders
Enable Unassign stock from an invoice(s) in the Terms Hold stage, when it is X days beyond order date to remove assigned stock after an order has remained held for the configured period.
The unassigned stock is set as postponed, so incoming deliveries do not automatically fulfil it.
Delivery and invoice postcode rules
Terms Enforcement can also hold Sales Orders based on their delivery or invoice postcode.
Postcodes are used in several Khaos Control areas and can support partial matching.
Delivery postcode
Enable Hold an order when delivery postcode is among and configure the required postcode regions.
For example, postcode criteria can use formats such as A11 or A[14-19].
Select Destination to specify the Manual Hold stage or substage where matching orders should be placed.
For more information, see:
- How To: Automatically Move Sales Orders to a Manual Hold Stage when they are from Specific Post Codes
- How To: Move Sales Orders from Specific Countries or Postcodes into a Manual Hold Sub-stage
- Configuring Postcodes
Invoice postcode
Enable Hold an order when invoice postcode is among to apply the same type of control to the invoice address.
Again, use Destination to select the Manual Hold stage or substage where matching orders should go.
Country-specific postcode rules
Where a postcode is associated with a particular country, both the postcode and the country must match.
For example, if 12345 exists in France and Germany but your rule defines 12345 specifically for Germany, an order with postcode 12345 and country France will not match.
If you enter a postcode region without selecting a country, it applies regardless of country.
Terms Enforcement constraints
Apply Terms Enforcement only on Sales Order save
- Unticked: Terms Enforcement can run whenever Khaos Control reassesses the Sales Order in the process path.
- Ticked: Terms Enforcement is evaluated only when the Sales Order is saved.
Warn on Sales Order save when moving to Future Stage
- Unticked: No warning appears.
- Ticked: A message tells the user when saving the Sales Order causes it to move into a Future stage.
The Future stages include Awaiting Date, Awaiting Stock, Manual Hold and Terms Hold.
Invoice Rules only apply to Future stages
When Invoice (Processing) Rules will ONLY be applied to Future stages in Sales Invoice Manager is:
- Unticked: Invoice Rules can apply to stages where Processing Rules are enabled through Edit Process Path.
- Ticked: Invoice Rules apply only to Future stages.
Terms Hold Rules only apply to Future stages
When Terms Hold Rules will ONLY be applied to Future stages in Sales Invoice Manager is:
- Unticked: Terms Enforcement can apply throughout the Sales Invoice Manager stages.
- Ticked: Terms Enforcement applies only within Future stages.
Allow partial Postcode matching
This setting controls how postcode spaces are treated:
- Unticked (default): Spaces are ignored, so XX1 1YY can match XX11YY.
- Ticked: Spaces are considered, so XX1 1YY matches XX1 1YY, but not XX11YY.
Postcode matching behaviour is particularly important when using postcode-based Invoice Rules. Earlier Khaos Control postcode matching functionality also disregarded spaces when comparing postcode values.
Terms Enforcement exemptions
Ignore Sales Invoices in Future stages when calculating available credit
- Unticked: Sales Orders in Future stages are included when calculating the customer's available credit.
- Ticked: Sales Orders in Future stages are excluded from the available-credit calculation.
Leave Sales Invoices in Future stages
The Leave Sales Invoices in Future stages, prevent the Terms Hold process from moving invoices if already in a Future stage setting determines whether Terms Enforcement can take an order out of its current Future stage.
- Unticked: An order in a Future stage can still be moved into Terms Hold when Terms Enforcement applies.
- Ticked: The order remains in its existing Future stage.
For example, with this option ticked, an order in Awaiting Stock remains there even if the customer exceeds their credit limit.
Using the exemption settings together
Scenario 1: Ignore Future values and leave Future orders where they are
- Ignore Sales Invoices in Future stages when calculating available credit: Ticked
- Leave Sales Invoices in Future stages: Ticked
Result: Credit is assessed using orders in the normal processing stages. Qualifying processing-stage orders can move to Terms Hold, while orders already in Future stages remain where they are.
Scenario 2: Ignore Future values but allow Future orders to move
- Ignore Sales Invoices in Future stages when calculating available credit: Ticked
- Leave Sales Invoices in Future stages: Unticked
Result: Credit is assessed using the normal processing stages, but qualifying Sales Orders can move into Terms Hold regardless of their current stage.
Scenario 3: Include Future values but leave Future orders where they are
- Ignore Sales Invoices in Future stages when calculating available credit: Unticked
- Leave Sales Invoices in Future stages: Ticked
Result: All relevant Sales Orders contribute towards the customer's credit position. Processing-stage orders can move into Terms Hold, but orders already in another Future stage remain there.
Scenario 4: Include Future values and allow Future orders to move
- Ignore Sales Invoices in Future stages when calculating available credit: Unticked
- Leave Sales Invoices in Future stages: Unticked
Result: Khaos Control considers relevant orders across all stages when assessing the customer's credit position. Qualifying orders can then move into Terms Hold regardless of their current stage.
Additional information
- Credit Terms are calculated from the invoice value.
- If a partly shipped Sales Order is manually released from a Future stage, issued, and later returns to a Future stage, its previous Terms Enforcement exemption is reset. The remaining invoice value can then be considered when Terms Enforcement next runs.
- Take care when combining multiple Invoice Rule triggers. A rule only matches when the Sales Order satisfies all criteria configured on that rule.
- The stage configuration in Edit Process Path can affect where Invoice Rules are evaluated.