5.5.4 D4 - SUBTOTAL/TOTAL TRANSACTION
This command is used to verify that the total amount accumulated by the fiscal unit matches the amount
accumulated by the application program.
5.5.4.1 Command Format
-----------------------------------------------------------------------
BYTE BIT
CONTENT
TYPE
LENGTH
0-1
1B66 - Cmd Prefix
hex
2
2
D4 - Subtotal/Total Transaction
hex
1
3
Cmd. Extension
hex
1
7
Retry
0 = NO
1 = YES
6
Reserved (always =
′ 0 ′ )
5
Print Density
0 = Normal
1 = Emphasized
4-3
Character Hight
(Note 1)
00 = Single
11 = Double
2-1
Reserved (always =
′ 0 ′ )
0
Character Width
0 = Single
1 = Double
4-15
D4_Amount
ASCII
12
-----------------------------------------------------------------------
Notes:
1. Double-wide should be selected to use double-high.
2. The number of CPI and emphasized apply to both the total message and the D4_Amount.
Double-wide apply to D4_Amount only.
5.5.4.2 Subtotal/Total Transaction Calculations
Tra_Tot
= ∑
vv
Tra_Tot_v
(
vv
)
Tra_V A T _v
(
vv
) =
TRUNC
(
Tra_Tot_v
(
vv
) ×
V A T _Rate_v
(
vv
)
100
+
V A T _Rate_v
(
vv
)
+
0.5
)
Tra_V A T
= ∑
vv
Tra_V A T _v
(
vv
)
for values of vv ranging from 1 to the maximum value
Tra_Amt_Due
=
Tra_Tot
5.5.4.3 Subtotal/Total Transaction Rules
•
Calculates transaction total and amount due.
Page 82 of 183 — IBM 4610 SureMark Fiscal Printer Turkey - Models GR3/GR5/GB3/GB5 Programmin
Содержание 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...