Point of Sale

Discounts

Two independent discount levels — one on a cart line, one on the invoice total — each sold as its own feature.

Last updated 2026-10-13

DigitalKey ERP — Docs · digital-key.co/docs/pos/discounts

Requires subscriptionpos.discount_item2,000 IQD / month
Requires subscriptionpos.discount_total2,000 IQD / month

Overview

A discount can be given in two places, and they are separate purchases. Item discounts mark down one line; invoice discounts take an amount off the whole sale. Subscribing to one does not give you the other.

Point of Sale — Discount fields in the cart
Discount fields in the cart
Discount fields in the cart — A cart line showing its discount inputs, with the invoice-level discount field in the totals panel below.

Item discount

Applied to a single cart line and expressed either as a percentage or as a fixed amount. The line total is reduced accordingly and the invoice subtotal follows.

Fields on a cart line
ParameterTypeRequiredDescription
items[].discount_pctdecimalOptionalDiscount on this line as a percentage of the line value.
items[].discount_amtdecimalOptionalDiscount on this line as a fixed amount.
items[].line_totaldecimalRequiredThe line value after its discount. Recalculated on the server.
NoteA product can carry a default discount_pct on its own record, which pre-fills the line when the item is added. See Adding Products. Overriding it in the cart affects only that sale.

Invoice discount

Applied once to the whole sale after all lines are totalled — the usual way to round a bill down or give a goodwill reduction.

Fields on the sale
ParameterTypeRequiredDescription
discount_total_amtdecimalOptionalInvoice discount as a fixed amount.
discount_total_pctdecimalOptionalInvoice discount as a percentage of the subtotal.

How they combine

The order of operations is fixed:

  1. Each line is priced as qty × unit_price.
  2. Any item discount is taken off that line, giving line_total.
  3. All line totals are added together to give the subtotal.
  4. The invoice discount is taken off the subtotal, giving the amount due.
WarningBecause the invoice discount is applied to the already-discounted subtotal, using both a 10% line discount and a 10% invoice discount is not a 20% reduction. Check the final total on screen before completing the sale.

Reporting on discounts

Discounts given are reportable, so you can see what they are costing you. The Discounts tab under Reports covers both item-level and invoice-level reductions, and opens with either the Sales Report or Smart Reports — there is no separate discount-report subscription any more.

Requires subscriptionreport.sales2,000 IQD / month

Discounts and typed prices are different things

NoteA discount reduces a line or the invoice and is shown as a discount on the printout. Typing a different price on a line is a separate permission with its own rule — a typed price may not go below cost. See Quick Sale.
NoteDiscount permissions are enforced on the server as well as in the screen. A sale that carries a line discount without pos.discount_item is rejected, so removing the control in the browser is not a way around the subscription.

Related