Show TOC

Background documentationRecord Type D: Discounts

 

Field

Columns

Size

Values

Can be Larger (See Record Type D3)

14 Discount Type

49 - 50

2 n

See Appendix I: Discount Types

15 Reason

51 - 52

2 n

User Defined

16 Discount Percentage

53 - 58

3.3 n

17 Extended Discount Amt

59 - 65

5.2 n

Y

18 Positive Flag

66 - 66

1 a/n

“ ” “-”

19 Reference Number

67 - 86

20 a/n

User Defined

20 Original Price

87 - 94

6.2 n

Y

21 Positive Flag

95 - 95

1 a/n

“ ” “-”

22 Discount ID

96 - 97

2 a/n

Encoded numeric value 1-255

23 Tax Table 1

98 - 98

1 n

0-No

1-Yes

24 Tax Table 2

99 - 99

1 n

0-No

1-Yes

25 Tax Table 3

100 - 100

1 n

0-No

1-Yes

26 Tax Table 4

101 - 101

1 n

0-No

1-Yes

27 Auto Preset Discount

102 - 102

1 n

0-No

1-Yes

28 Affect Net Sales

103 - 103

1 n

0-No

1-Yes

29 Profile Prompt Flag

104 - 104

1 n

0-No

1-Yes

30 Scanned Reference Num

105 - 105

1 n

0-No

1 - Yes

31 Tax 5

106 - 106

1 n

0-No

1-Yes

32 Tax 6

107 - 107

1 n

0-No

1-Yes

33 Tax 7

108 - 108

1 n

0-No

1-Yes

34 Tax 8

109 - 109

1 n

0-No

1-Yes

35 Tax 9

110 - 110

1 n

0-No

1-Yes

36 Tax 10

111 - 111

1 n

0-No

1-Yes

37 Tax 11

112 - 112

1 n

0-No

1-Yes

38 Tax 12

113 - 113

1 n

0-No

1-Yes

39 Tax 13

114 - 114

1 n

0-No

1-Yes

40 Tax 14

115 - 115

1 n

0-No

1-Yes

41 Tax 15

116 - 116

1 n

0-No

1-Yes

42 Tax 16

117 - 117

1 n

0-No

1-Yes

43 Promo Amount

118 - 123

4.2 n

Used Internally

Y

44 Allegiance promotion ID

124 - 133

10 n

45 IEC Code

134 - 153

20 a/n

Reserved

46 Choice Type

154 - 156

3 n

Used Internally

47 Reason Code

157 - 159

3 n

Used Internally

48 Profile ID

160 - 162

3 n

Used Internally

49 Discount Quantity

163 - 169

7 n

Used Internally

50 Using Preset Flag

170 - 170

1 n

Used Internally

51 Employee Sale Flag

171 - 171

1 n

Used Internally

52 Txn. Discount on Item Discount Flag

172 - 172

1 n

Used Internally

53 Txn. Discount on Txn. Discount Flag

173 - 173

1 n

Used Internally

54 Coded Coupon Flag

174 - 174

1 n

Used Internally

55 Auto Discount Flag

175 - 175

1 n

Used Internally

56 Mix Match ERP ID

176 - 187

12 a/n

Mix Match alphanumeric ID

57 Item Number

188 - 192

5 n

Item number

58 Discount Description

193 - 212

20 a/n

59 Store ID Extension

213 - 215

4 n

High order digits for Store ID Extension with leading zeros.

60 Cashier ID Extension

216 - 218

2 n

High order digits for Cashier ID Extension with leading zeros.

61 Salesperson ID Extension

219 - 220

2 n

High order digits for Salesperson ID Extension with leading zeros.

62 Record # Sequence Extension

221 - 222

2 n

High order digits for Record # Sequence.

63 Discount ID

223 - 225

3 n

1 - 199

Total bytes: 225

Note Note

If LOGCOUPONPLUis set to Y in the POS.INI, the reference will store the entire coupon number, otherwise it will store the last 2 digits of the number instead.

This record will not be written for return transactions when the discount is prorated. Only D1 records will be written to the TLog in these cases. For more information, see Record Type D1: Discounts.

The Discount ID field #22 (positions 96 - 97) is preserved for backward compatibility only; new development should use field #63 (positions 223 - 225) which contains the discount ID as a proper numeric value between 1 and 999. If discount ID is greater than 255, the value in field #22 will be zero (00). For discount IDs between 1 and 255, this field contains a two characters long string with an encoded numeric discount ID value if discount ID is less than 100, encoding is not applied. If discount ID is between 100 and 255, then the number of tens is represented by a letter from the Latin alphabet. A represents 10 tens, B represents 11 tens, C represents 12 tens and so on, P represents 25 tens. For example, discount ID 127 will be encoded as C7 (3 tens + 7), while discount ID 255 will be encoded as P5 (25 tens + 5).

End of the note.