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
TYPE
LENGTH
0-1
1B66 - Cmd Prefix
hex
2
2
D9 - Discount/Uplift Subtotal
hex
1
3
Cmd. Extension
hex
1
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
ASCII
20
24-25
Reserved
ASCII
2
26-37
D9_Amount
ASCII
12
-----------------------------------------------------------------------
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
) −
D9_Amount
×
Tra_Tot_v
(
vv
)
Tra_Tot
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.
Note that this rounding operation is done on the
Tra_Tot_v accumulators.
Tra_Tdsc
=
Tra_Tdsc
+
D9_Amount
•
Discount and Rectify = YES
Tra_Tot_v
(
vv
) =
Tra_Tot_v
(
vv
) +
D9_Amount
×
Tra_Tot_v
(
vv
)
Tra_Tot
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.
Note that this rounding operation is done on the
Tra_Tot_v accumulators.
Tra_Tdsc
=
Tra_Tdsc
−
D9_Amount
•
Uplift and Rectify = NO
Command Set Reference — Page 87 of 183
Содержание 4610 SureMark GR3
Страница 12: ...Page 12 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmin...
Страница 14: ...Page 14 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmin...
Страница 18: ...Page 18 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmin...
Страница 26: ...Page 26 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmin...
Страница 30: ...Page 30 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmin...
Страница 44: ...Page 44 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmin...
Страница 129: ...b The maximum number of ordinary lines in DI station EB cmd are 255 Command Set Reference Page 129 of 183...
Страница 154: ...Page 154 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmi...
Страница 178: ...Page 178 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmi...
Страница 182: ...Page 182 of 183 IBM 4610 SureMark Fiscal Printer Turkey Models GR3 GR5 GB3 GB5 Programmi...