Skip to content

Pricing Rule ​

A pricing rule changes the price on a sales invoice by itself when the invoice meets the rule's conditions. You set it up once, and Hicom Books applies it every time you sell the item. Typical uses:

  • 10% off when a customer buys 12 packs or more.
  • A special rate of Rp 45.000 per pack during a promotion month.
  • Buy 5 packs, get 1 free.

Pricing rules work on sales invoices and on sales made in the Point of Sale. They do not change sales quotes, purchase invoices or returns. A return keeps the prices of the invoice it returns.

Before you start ​

Pricing rules give discounts, so they need discount accounting.

  1. In the sidebar, click Setup > Settings.
  2. On the General tab, under Features, turn on Enable Discount Accounting. The Enable Pricing Rule switch appears.
  3. Turn on Enable Pricing Rule.
  4. Click Save, and click Yes when Hicom Books asks to reload.

Pricing Rule now appears under Sales in the sidebar.

WARNING

Enable Discount Accounting cannot be turned off after you save it. Read Discount Accounting first if you are not sure.

You can turn Enable Pricing Rule off again later. Hicom Books then stops applying the rules to new changes. Invoices you already submitted keep their prices.

Only users with the Books Manager or System Manager role can create and edit pricing rules. Other users can see them. See Roles and Permissions.

Create a pricing rule ​

  1. In the sidebar, click Sales > Pricing Rule, then click New.
  2. Enter a Title that tells your team what the rule does, for example Kopi Arabika 12+ hemat 10%.
  3. Under Applied Items, add a row for each item the rule covers. Select the Item. The Unit Type fills with the item's stock unit.
  4. Select the Discount Type: Price Discount or Product Discount. The matching section appears.
  5. Fill in that section (see below).
  6. Select a Priority from 1 to 20.
  7. Optional: set the limits under Quantity and Amount and Validity.
  8. Click Save.

New pricing rules are numbered with the PRLE- series, for example PRLE-1001. Is Pricing Rule Enabled is on for a new rule. Turn it off to pause a rule without deleting it.

Pricing Rule form for a 10% discount on Kopi Arabika 250 g, with one applied item, Price Discount selected and Priority 5

Price discount ​

A price discount changes the rate or the discount of each invoice row of the item. Pick the Price Discount Type and enter one value:

Price Discount TypeFieldEffect on each matching row
RateRateSets the row rate, per one unit of the rule's Unit Type. If you typed a rate on the row yourself, your rate stays.
Discount PercentageDiscount PercentageSets the row discount to this percent (0 to 100).
Discount AmountDiscount AmountTakes this amount off the whole row, not off each unit. It never takes off more than the row is worth.

The rule's discount replaces any discount typed on the row, and is posted to the discount account set in Settings.

Product discount (free item) ​

A product discount adds a free row to the invoice, with a rate of zero.

FieldWhat to enter
Free ItemThe item the customer gets for free. It may be the same item they buy.
QuantityHow many free units the customer gets.
UOMThe unit of the free row. Leave it empty to use the free item's own unit.
Round Free Item QuantityTurn on to round the free quantity to a whole number, then choose the Rounding Method: Floor (down), Round (nearest) or Ceil (up).
Is RecursiveTurn on to give the free quantity again for every full set bought.
Recurse Every (As Per Stock Unit)The size of one set, in the stock unit. Appears when Is Recursive is on.

Without Is Recursive, the customer gets the Quantity once when the conditions are met. With Is Recursive, the free quantity grows with the quantity bought: Quantity × quantity bought ÷ Recurse Every. If the free quantity is zero after rounding, the rule does not apply.

Example: buy 5, get 1 free. Set Free Item to the same item, Quantity 1, turn on Is Recursive with Recurse Every 5, and turn on Round Free Item Quantity with Floor. A customer who buys 12 packs gets 2 free packs (12 ÷ 5 = 2.4, rounded down).

Conditions ​

Leave a limit empty or at zero when you do not need it.

FieldThe rule applies only when
Min Qty (As Per Stock Unit), Max Qty (As Per Stock Unit)The total quantity of the item on the invoice is within this range.
Min Amount, Max AmountThe total value of the item on the invoice (rate × quantity) is within this range.
Valid From, Valid ToThe invoice date is within these dates.

The totals add up all rows of the item that are sold in a Unit Type of the rule. Min Amount must be lower than Max Amount. Enter amounts in your company currency; for an invoice in another currency, Hicom Books converts them at the invoice's exchange rate.

To give the same item a rule in two units, for example per pack and per carton, add two Applied Items rows with the same item and a different Unit Type. The unit must be the item's stock unit or one of its unit conversions.

Which rule wins ​

An invoice row gets one pricing rule at most. When several enabled rules match the same item, the rule with the highest Priority number wins (20 is the highest).

If two matching rules share the highest priority, Hicom Books shows an error and does not save the invoice. Give rules for the same item different priorities, for example 5 for the everyday discount and 10 for a seasonal promotion.

What you see on the invoice ​

Hicom Books applies pricing rules while you fill in a sales invoice and checks them again when you save and submit. If a row stops meeting a condition, for example because you lowered the quantity, the discount or the free row is taken off again.

Each rule that applied is listed in the invoice's Pricing Rule Detail table, with the item it applied to.

Sales invoice with a free row for Kopi Arabika 250 g at rate zero and the Pricing Rule Detail table listing PRLE-1002

In the Point of Sale, a free row shows the name of its rule and cannot be edited. To stop pricing rules at a counter, turn on Ignore Pricing Rule in the POS settings or in the POS profile. See Point of Sale (POS).

Coupon-only rules ​

When coupon codes are turned on, the form also shows Is Coupon Code Based. A rule with this switch on applies only to invoices that carry one of its coupons. See Coupon Code.