D9 - Discount/Uplift On Subtotal; Command Format; Discount/Uplift On Subtotal Calculations - IBM 4610 SureMark GR3 Programming Manual Supplement

Fiscal printer turkey
Table of Contents

Advertisement

5.5.7 D9 - DISCOUNT/UPLIFT ON SUBTOTAL

This command is used to apply discount or uplift on subtotal.

5.5.7.1 Command Format

-----------------------------------------------------------------------
BYTE BIT CONTENT
0-1
1B66 - Cmd Prefix
2
D9 - Discount/Uplift Subtotal
3
Cmd. Extension
7
Retry
0 = NO
1 = YES
6
Rectify
0 = NO
1 = YES
5-1 Reserved (always = ' 0 ' )
0
Operation Type
0 = DISCOUNT
1 = UPLIFT
4-23
D9_Description
24-25
Reserved
26-37
D9_Amount
-----------------------------------------------------------------------

5.5.7.2 Discount/Uplift on Subtotal Calculations

Discount and Rectify = NO
Tra_N_Tdsc = Tra_N_Tdsc + 1
Tra_Tot_v(vv) = Tra_Tot_v(vv) −
for values of vv ranging from 1 to the maximum values
Rounding is performed by incrementing quotients of divisions with highest reminders, until the sum of
all quotients corresponds to discount amount.
Tra_Tot_v accumulators.
Tra_Tdsc = Tra_Tdsc + D9_Amount
Discount and Rectify = YES
Tra_Tot_v(vv) = Tra_Tot_v(vv) +
for values of vv ranging from 1 to the maximum values
Rounding is performed by incrementing quotients of divisions with highest reminders, until the sum of
all quotients corresponds to discount amount.
Tra_Tot_v accumulators.
Tra_Tdsc = Tra_Tdsc − D9_Amount
Uplift and Rectify = NO
D9_Amount × Tra_Tot_v(vv)
Tra_Tot
Note that this rounding operation is done on the
D9_Amount × Tra_Tot_v(vv)
Tra_Tot
Note that this rounding operation is done on the
TYPE
LENGTH
hex
2
hex
1
hex
1
ASCII
20
ASCII
2
ASCII
12
Command Set Reference — Page 87 of 183

Advertisement

Table of Contents
loading

This manual is also suitable for:

4610 suremark gb34610 suremark gr54610 suremark gb5

Table of Contents