-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathOscarItemTemplate.bt
executable file
·118 lines (118 loc) · 2.31 KB
/
OscarItemTemplate.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//--------------------------------------
//--- 010 Editor v5.0.2 Binary Template
//
// File: OscarItemTemplate.bt
// Author:
// Revision:1.0
// Purpose: Template for binary journal
// file used in AppleOne POS.
//--------------------------------------
while( !FEof() ){
struct RECORD {
char type;
if (r.type == 'A'){
char unused <bgcolor=0xff0000>;
short empNum;
int ssn;
short checkNum;
short tableNum;
short calcGuestCt;
short openTime;
short flagDeleted;
short unused2;
short pullBack;
short itemCt;
short guestCt;
short takeoutTicket;
int csiNumber;
char junk[22];
} else { if (r.type == 'B'){
char unused <bgcolor=0xdddd00>;
short empNum;
int ssn;
short itemNum;
short deptCat;
short priceGrp;
int price;
int tax1Amt;
int tax2Amt;
short quantity;
short taxStatusAcct;
short specUserId;
int plu;
int managerSsn;
short orderTime;
byte seatNum;
byte priceCode;
byte xxExpansion;
byte itemType;
int reductionCode;
int postPrice;
} else { if (r.type == 'C' || r.type == 'D'){
char unused <bgcolor=0x0000ff>;
short empNum;
int ssn;
short itemNum;
short deptCat;
short priceGrp;
int price;
int tax1Amt;
int tax2Amt;
short quantity;
short dupVoidCat;
short managerNum;
int plu;
int managerSsn;
short tranTime;
byte seatNum;
char unused2[3];
short voidCatId;
char junk[6];
} else { if (r.type == 'E'){
char unused <bgcolor=0x00dddd>;
short empNum;
int ssn;
char unused2[6];
int discAmt;
int tax1Amt;
int tax2Amt;
short quantity;
short altDiscCat;
short managerNum;
char unused3[4];
int managerSsn;
short discTime;
byte seatNum;
char unused4[3];
short discCatId;
char junk[6];
} else { if (r.type == 'F'){
char unused <bgcolor=0x551a8b>;
short empNum;
int ssn;
short payCatId;
int payAmt;
int gratuity;
int externalId;
short status;
int acctNum;
int acctExHigh;
int cashBack;
char junk[18];
} else { if (r.type == 'K'){
char unused <bgcolor=0x00ff00>;
short empNum;
int ssn;
int amount;
short closedTime;
short origClsTime;
int unused2;
short dupEmpNum;
int unused3;
short origCheckNum;
char junk[26];
} else {
char junk[53] <bgcolor=0xaaaaaa>;
}}}}}}
} r;
}