Discounts – Gasboy SCII POS User Manual
Page 75

68
Disk journal layout
Point of Sale and Shift Change
Gasboy CFN Series
03/07/03
Total tax amount
Total tax amount is a derived field in the transaction header record. The total tax amount is derived
by summing all tax detail records for the sale with normal item status:
total_tax = tax_amounts
Tax type
The Site Controller supports eight different taxes and the tax detail record has a tax type field that
ranges from 1 to 8. There is a tax detail record for each tax applied to the sale.
Taxes byte map
Each fuel and merchandise detail record contains a taxes byte-map, which is an 8-character field
containing ones and zeros. When a fuel or merchandise item has a tax applied to it, the field of the
taxes byte-map for that item has a 1 in it. Any items that are exempt from a tax have a zero in the
field of the taxes byte-map for that item.
Discounts
(NOTE: When this manual was written, discounts had not yet been implemented in the standard
package, so please ignore this section for the time being.)
There are two categories of discounts: sale discounts and item discounts.
Sale discounts
Sale discounts apply to multiple fuel and merchandise detail records. To have sale discounts,
create a refund department for each sale discount.
When a sale is discounted, a discount detail record is created. When a fuel or merchandise item has
a sale discount applied to it, the discount type is stored in the discount-type field of that fuel or
merchandise item record.
Up to four sale discounts may apply to a single item. The discount type of items that have no
discounts applied to them is zero: items that have multiple discounts applied to them may use the
remaining bytes of the discounts field.
Item discounts
Item discounts apply to a single fuel or merchandise detail record. When an item is discounted, a
merchandise record of type discount is created. If more than one item discount applies to an item,
then a discount record is created for each discount that applies.
There is no limit to the number of discounts that may apply to an item. However, a sale may
contain a maximum of 99 merchandise detail records.
Total fuel and merchandise discounts
In the transaction header record, total fuel discount and total merchandise discount are reserved for
discounts.
The sum of both totals can be derived by summing all sale and item discounts for the sale, for
discount and merchandise detail records with product type discount and normal item status:
total_fuel_discount + total_merchandise_discount = discount_amounts + dollar_amounts
Amounts in transaction detail records
In fuel and merchandise detail records, the amount is always a positive amount. This positive
amount may be derived by multiplying the quantity by price. However, this is not normally done
due to rounding considerations. When dealing with derived values that have been rounded, it is
easier to avoid rounding errors by using a value that has been calculated in a single place.