Receipt Field Properties List
Order: The root. Should be named "item" example:
Example: item.id would show the orderID field.
Different sections of the receipt may use different sections of data. The items of the order, for example, bread would be: item.name, this would show the name Bread.
Order Fields:
id: number;
orderTime: string;
orderDate: string;
completionDate: string;
completionTime: string;
eta: string;
employeeID: number;
clientID: number;
serviceTypeID: number;
productOrderMemo: string;
shippingNumber: string;
shipAddress: string;
shipAddress2: string;
shipCity: string;
shipName: string;
shipPostal: string;
shipState: string;
shipSuite: string;
shipPostalCode: string;
reportRunID: number;
employeeName: string;
serviceType: string;
registerTransaction: boolean;
orderPhone: string;
onlineOrderID: string;
purchaseOrderNumber: string;
positiveNegative: number;
itemCount: number;
subTotal: number;
total: number;
taxTotal: number;
tax1: number;
tax2: number;
tax3: number;
taxColumn1Description : string;
caxColumn2Description : string;
taxColumn3Description : string;
barTax: number;
crv: number;
cost : number;
orderPercentDiscount: number;
orderCashDiscount: number;
itemCashDiscount: number;
itemPercentDiscount: number;
gramCount: number;
seedCount: number;
liquidCount: number;
concentrateCount: number;
extractCount: number;
quantity: number;
itemQuantity: number;
orderID: number;
deviceName: string;
preferredScheduleDate: string;
customerName: string;
zrun: string;
routeID: number;
routeDetailID: number;
suspendedOrder: boolean;
posPayments: PosPayment[];
clients_POSOrders: ClientsPOSOrders;
posOrderItems: PosOrderItem[];
balanceRemaining : number;
totalPayments : number;
voidReason : string;
resultMessage : string;
history : boolean;
orderLocked: string;
wicTotal : number;// As Double
ebtTotal : number;// As Double
stateTotal : number;// As Double
gratuity : number;
tableUUID : string;
floorPlanID : number;
tableName : string;
orderCode: string;
service : IServiceType;
creditFee_Total : number;
cashDiscountFee : number;
creditBalanceRemaining: number;
}
export interface ClientsPOSOrders {
id: number;
firstName: string;
lastName: string;
phone: string;
zip: string;
state: string;
city: string;
address: string;
email: string;
notes: string;
loyaltyPoints: number;
loyaltyPurchaseCount: number;
clientUUID: string;
uid: string;
clientType: number;
totalPurchases: number;
initialDate: string;
lastAccessedDate: string;
company: string;
accountNumber: string;
userName: string;
cellPhone: string;
apiPassword: string;
roles: string;
onlineDescription: string;
onlineDescriptionImage: string;
onlineDescriptionTag: string;
dob: string;
gender: number;
followUpdateDate: string;
salesRepName: string;
statusname: string;
lasModifiedDate: string;
taxSales: number;
priceColumn: number;
defaultPercentageDiscount: number;
client_Type: ClientType;
age: number;
loyaltyPointValue: number;
}
export interface ClientType {
id: number;
name: string;
pointValue: string;
dailyCredit: number;
limitGram: number;
limitSeeds: number;
limitPlants: number;
limitLiquid: number;
limitSolid: number;
limitConcentrate: number;
limitExtract: number;
limitConcentrates: number;
allowStaffUse : boolean;
authorizationGroupID: number;
jsonObject : string;
}
export interface PosOrderItem {
id: number;
productID: number;
orderID: number;
sku: string;
productName: string;
quantity: number;
discount: number;
unitPrice: number;
wholeSale: number;
modifierNote: string;
unitType: number;
tax1: number;
serviceTypeID: number;
employeeID: number;
zrun: string;
clientID: number;
reportRunID: number;
originalPrice: number;
serverName: string;
serviceType: string;
tax2: number;
tax3: number;
wicebt: number;
caseQTY: number;
stdRetail: number;
itemCashDiscount: number;
itemOrderCashDiscount: number;
itemOrderPercentageDiscount: number;
itemLoyaltyPointCount: number;
itemLoyaltyPointDiscount: number;
itemPercentageDiscountValue: number;
itemOrderPercentageDiscountID: number;
itemOrderCashDiscountID: number;
itemCashDiscountID: number;
itemPercentageDiscountValueID: number;
itemLoyaltyPointDiscountID: number;
unitName: string;
prodModifierType: number;
printed: string;
isWeightedItem: number;
quantityView: string;
positiveNegative: number;
orderDate: string;
completionDate: string;
voidReason: string;
subTotal: number;
total: number;
taxTotal: number;
itemType : ItemType;
promptGroupID : number;
idRef : number;
posOrderMenuItem: PosOrderMenuItem;
menuItem : IMenuItem;
inventory : IInventoryAssignment;
serialCode: string;
history : boolean;
inventoryCountUsage: number;
scheduleID: number;
scheduleDiscount_GroupValue : number;
isSchedule_DiscountMember : number;
isSchedule_DiscountedItem : number;
discountScheduleID : number;
packagingMaterial : string;
portionValue : string;
itemPrepped : string;
printLocation : number;
splitGroupID : number;
gratuity : number;
itemReturn : number;
inventoryAssignmentID : number;
}
export interface PosPayment {
id: number;
orderID: number;
paymentMethodID: number;
amountPaid: number;
amountReceived: number;
tipAmount: number;
zrun: string;
employeeID: number;
employeeName: string;
reportRunID: number;
clientName: string;
completionDate: string;
orderDate: string;
serviceTypeID: number;
serviceType: string;
registerTransaction: boolean;
positiveNegative: number;
voidReason : string;
paymentMethod : IPaymentMethod;
history : boolean;
refNumber: string;
approvalCode: string;
acqRefData: string;
entryMethod: string;
addedPercentageFee : number;
tranType : string;
resptat: string;
account: string;
retref: string;
expiry: string;
respproc: string;
resptext: string;
}
////Payments - need to move to it's own file.
export interface PaymentMethod {
id: number;
name: string;
isCreditCard: boolean;
companyCredit: boolean;
reverseCharge: boolean;
managerRequired: boolean;
wic: boolean;
ebt: boolean;
tenderOrder: number;
exchangeRate: number;
isCash: boolean;
state: boolean;
enabledOnline: boolean;
preAuth : boolean;
instructions: string;
}
export interface PosPayment {
id: number;
orderID: number;
paymentMethodID: number;
amountPaid: number;
amountReceived: number;
tipAmount: number;
zrun: string;
employeeID: number;
employeeName: string;
reportRunID: number;
clientName: string;
completionDate: string;
orderDate: string;
serviceTypeID: number;
serviceType: string;
registerTransaction: boolean;
positiveNegative: number;
voidReason: string;
paymentMethod: IPaymentMethod;
history: boolean;
}