<html {RightToLeft}>
<head>
<meta http-equiv="Content-Type" content="text/html;" charset="utf-8" >
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="Cache-control" content="public">

<link href="https://fonts.googleapis.com/css?family=Heebo:400,700&amp;subset=hebrew" rel="stylesheet">
<link href="css/manage.css.gz" rel="stylesheet" type="text/css">    
<link href="css/bootstrap.min.css.gz" rel="stylesheet">

<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/included.js"></script>

<style type="text/css">

@page {
	size: auto;
	margin: 15mm 0mm 15mm 0mm; 
}
@page :first {
	margin-top: 0mm;
}

body {
    background: #e6e6e6;
	font-family: 'Heebo', Arial, sans-serif;
	color: #4a4a4a;
}

body[dir="rtl"] .alignl, body[direction="rtl"] .alignl { text-align: right; }
body[dir="rtl"] .alignr, body[direction="rtl"] .alignr { text-align: left; }

.alignl { text-align: left; }
.alignr { text-align: right; }

body, table { font-size: 10px; }
table { width: 100%; }
th, .table-header { font-weight: bold; text-align: initial; }

.content {
    background: #ffffff;
    max-width: 900px;
	margin: 30px auto;
    padding: 50px 40px 30px;
	overflow: hidden;
}

header, .data-chart { margin-bottom: 30px; }
.data-chart canvas { max-width: 100%; }

.doc-title {
    margin: 0 0 8px;
	font-size: 26px;
    font-weight: 400;
}

header div, .data-row { 
	display: inline-block; 
	vertical-align: top;
}

.width-100 { width: calc(100% - 20px); padding: 0 10px; }
.width-66 { width: calc(66.66% - 30px); padding: 0 50px 0 10px; }
.width-50 { width: calc(50% - 20px); padding: 0 10px; }
.width-33 { width: calc(33.33% - 50px); padding: 0px 50px 0px 10px; }
.width-33:last-of-type { padding-right: 10px; }

table, th, td { padding: 2px 0px; border-collapse: collapse; }

.table-wrap { margin-bottom: 30px; }

.table-row {
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	-webkit-flex-direction: row;
	flex-wrap: no-wrap;
	-webkit-flex-wrap: no-wrap;
	width: 100%;
	padding-bottom: 4px;
}
.wrapper {
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	-webkit-flex-direction: row;
	flex-grow: 0;
	-webkit-flex-grow: 0;
}
.text-4, .text-2, .text {
	flex-grow: 1;
	-webkit-flex-grow: 1;
}
.text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding-right: 20px;
}
.text { width: 100px; }
.num { width: 80px; }

.table-totals {
    border-top: solid 1px #cacaca;
    padding-top: 5px;
	line-height: 1.5em;
}

footer {
    width: 100%;
    margin-top: 30px;
    font-size: 8px;
    text-align: center;
}

footer a {
	text-decoration: none; 
	color: inherit
}

@media only screen and (max-width: 750px) {
	.content { padding: 25px 15px; }
	.alignr { text-align: left; }
	.width-66, .width-50, .width-33 { width: 100%; max-width: calc(100% - 20px); }
	.item-row {
		padding-bottom: 3px;
		border-bottom: solid 1px #cacaca;
		margin-bottom: 3px;
	}
	.item-row:last-of-type {
		border-bottom: none;
	}
}
@media all and (max-width: 550px) {
	.text-2, .num-2 {
		flex-direction: column;
		-webkit-flex-direction: column;
	}
	.text-2 div, .num-2 div {
		flex-grow: 0;
		-webkit-flex-grow: 0;
		width: 100%;
	}
	.text-2 { width: 100px; }
	.num-2 { width: 80px; }
	.table-header {
		margin: 0 -3px 8px;
		padding: 5px 10px;
		background-color: #e6e6e6;
	}
	.item-row {
		padding-left: 10px;
		padding-right: 10px;
	}
}
@media all and (max-width: 350px) {
	.table-row {
		flex-direction: column;
		-webkit-flex-direction: column;
	}
	.table-row div {
		flex-grow: 0;
		-webkit-flex-grow: 0;
		width: 100%;
	}
	.num { text-align: left; }
}

@media print {
	body { height: 10px; margin: 10mm 15mm 10mm 15mm; background-color: #ffffff; }
	body #main { display: block !important; height: auto; }
	aside { padding-left: 0; }
	aside .key-toggle { display: none !important; }
	aside .key .icon { background-color: #ffffff; }
	aside .key svg { stroke: #6b6c6c; }
   .trans-header { background-color: #ffffff; border: solid 1px #cacaca; }
}

#dataChart #chartjs-tooltip {
 opacity: 1;
 position: absolute;
 background: rgba(0, 0, 0, .7);
 color: white;
 border-radius: 3px;
 -webkit-transition: all .1s ease;
 transition: all .1s ease;
 pointer-events: none;
 -webkit-transform: translate(-50%, 0);
 transform: translate(-50%, 0);
 width: 300px; 
}

</style>

<script src="js/Chart.js"></script>

<script type="text/javascript">
	var itemTypeChartData = {
		{ItemTypeChartData}
	};
	if (itemTypeChartData.datasets[0].data.length > 10) {
		itemTypeChartData.datasets[0].data = itemTypeChartData.datasets[0].data.slice(0, 10);
		itemTypeChartData.labels = itemTypeChartData.labels.slice(0, 10);
	}
	
	function loadCharts() {
		const decimals = 0;
		var currency = '{Literal}${/Literal}';
        var ctx = document.getElementById("dataChart").getContext("2d");
		
		Chart.defaults.global.defaultFontFamily = 'Heebo, Arial, sans-serif';
		Chart.defaults.global.defaultFontSize = 10;
		
        var myChart = new Chart(ctx, {
            type: 'bar',
            data: itemTypeChartData,
            options: {
				layout: {
					padding: {
						left: 30,
						right: 10,
						top: 0,
						bottom: 0
					},
				},
				legend: {
					display: false,
				},
                scales: {
					xAxes: [{
						autoSkip: true,
                        maxTicksLimit: 10,
						categoryPercentage: 1.0,
						barPercentage: 1.0,
						barThickness: 10,
						backgroundColor: 'rgba(204,204,204, .9)',
						gridLines: {
							display: false,
						}
                    }],
                    yAxes: [{
                        ticks: {
                            beginAtZero: true,
							callback: function(value, index, values) {
								return currency + value.toFixed(decimals);
							},
                        },
						gridLines: {
							borderDash: [7,5],
						}
                    }]
                },
				tooltips: {
					xPadding: 12,
					displayColors: false,
				}
			}
        });
    }
	
</script>

<script type="text/javascript">
	function checkErrorMessage() {
		var errorMessage = document.getElementById('errorMessage');
		if (errorMessage && errorMessage.value)
			openPopupMessage();
	}
</script>

{XOutTitleBlock}
	<title>{Literal}X Read Summary Report{/Literal}</title>
</head>
<body onLoad="checkErrorMessage(); loadCharts();">
	{EmailBlock}
	<input type="hidden" id="errorMessage" name="errorMessage" value='{ErrorMessage}' />

	<div id="main" class="content">

		<header>
			<div class="width-100">
					<h1 class="doc-title">{Literal}X Read Summary Report{/Literal}</h1>
{/XOutTitleBlock}

{ZOutTitleBlock}
	<title>{Literal}Z Reset Summary Report{/Literal}</title>
</head>
<body onLoad="checkErrorMessage(); loadCharts();">
	<input type="hidden" id="errorMessage" name="errorMessage" value='{ErrorMessage}' />

	<div id="main" class="content">

		<header>
			<div class="width-100">
					<h1 class="doc-title">{Literal}Z Reset Summary Report{/Literal}</h1>
{/ZOutTitleBlock}

			</div><div 
			class="width-50 alignl">
				<p>{CompanyName} <br>{CompanyAddress1} {CompanyAddress2} <br>{CompanyCity}, {CompanyState} {CompanyZip}</p>
			</div><div 
			class="width-50 alignr">
				<p>{Literal}Report for Till{/Literal} {Till}</p>
			</div><div 
			class="width-100">
				<p>{Literal}Report was run on{/Literal} <strong>{DateRun}</strong> <br>{Literal}Transactions from{/Literal} <strong>{StartTime}</strong> {Literal}through{/Literal} <strong>{EndTime}</strong></p>
			</div>
		</header>

		<main>
		
			{ChartDataBlock2}
			<div class="data-chart width-100">
				<canvas id="dataChart" width="900" height="250"  />
				<script>
					function convertCanvasToImage(canvas) {
						var chartImg = new Image();
						chartImg.src = canvas.toDataURL("image/png");
						return chartImg;
					}
				</script>
			</div>
			{/ChartDataBlock2}
		
			<div class="data-chart"></div>
			<div class="data-tables">
			
				<div class="data-block block1">
					<div class="data-row width-66">
						<div class="table-wrap">
							<h2>{Literal}Sales Details{/Literal}</h2>
							<div class="table table-sales">
								<div class="table-row table-header">
									<div class="wrapper text-4">
										<div class="text">{Literal}Item Types{/Literal}</div>
									</div>
									<div class="wrapper num-4">
										<div class="wrapper num-2">
											<div class="num">{Literal}Qty{/Literal}</div>
											<div class="num">{Literal}Total Sales{/Literal}</div>
										</div>
										<div class="wrapper num-2">
											<div class="num">{Literal}Returns Qty{/Literal}</div>
											<div class="num">{Literal}Returns Total{/Literal}</div>
										</div>
									</div>
								</div>
								{ItemBlock}
								<div class="table-row item-row">
									<div class="wrapper text-4">
										<div class="text">{ItemType}</div>
									</div>
									<div class="wrapper num-4">
										<div class="wrapper num-2">
											<div class="num">{Quantity}</div>
											<div class="num">{Total}</div>
										</div>
										<div class="wrapper num-2">
											<div class="num">{Void}</div>
											<div class="num">{VoidAmount}</div>
										</div>
									</div>
								</div>
								{/ItemBlock}
								<div class="table-row table-totals">
									<div class="wrapper text-4">
										<div class="text"><strong>{Literal}Item Totals{/Literal}</strong></div>
									</div>
									<div class="wrapper num-4">
										<div class="wrapper num-2">
											<div class="num">{QuantityTotal}</div>
											<div class="num">{ItemTotal}</div>
										</div>
										<div class="wrapper num-2">
											<div class="num">{VoidTotal}</div>
											<div class="num">{VoidAmountTotal}</div>
										</div>
									</div>
								</div>

							</div>
						</div>
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
							<h2>{Literal}Transaction Details{/Literal}</h2>
							<div class="table table-transactions">
								<div class="table-row item-row">
									<div class="text">{Literal}Transaction Count{/Literal}</div>
									<div class="num">{TransactionCount}</div>
								</div>	
								<div class="table-row item-row">
									<div class="text">{Literal}No Sale Count{/Literal}</div>
									<div class="num">{NoSaleCount}</div>
								</div>
								<div class="table-row item-row">
									<div class="text">{Literal}Credit Transactions{/Literal}</div>
									<div class="num">{CreditCardCount}</div>
								</div>
								<div class="table-row">
									<div class="text">{Literal}Debit Transactions{/Literal}</div>
									<div class="num">{DebitCardCount}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="data-block block2">
					<div class="width-100">
						<h2>{Literal}Tender Details{/Literal}</h2>
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
							<div class="table table-tender1">
								<div class="table-row table-header">
									<div class="text">{Literal}Tender Name{/Literal}</div>
									<div class="num">{Literal}Amount{/Literal}</div>
								</div>	
								{TenderBlock}
								<div class="table-row item-row">
									<div class="text">{TenderName}</div>
									<div class="num">{TenderAmount}</div>
								</div>
								{/TenderBlock}
								<div class="table-row table-totals">
									<div class="text"><strong>{Literal}Tendering Total{/Literal}</strong></div>
									<div class="num">{TenderTotal}</div>
								</div>
							</div>
						</div>
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
							<div class="table table-tender2">
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Starting Cash{/Literal}</strong></div>
									<div class="num">{StartingCash}</div>
								</div>	
								<div class="table-row item-row" {DisplayTipData}>
									<div class="text"><strong>{Literal}Credit Card Tips{/Literal}</strong></div>
									<div class="num">{CreditCardTips}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Total Cash{/Literal}</strong></div>
									<div class="num">{TotalCash}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Ending Cash{/Literal}</strong></div>
									<div class="num">{EndingCash}</div>
								</div>
								<div class="table-row item-row" {DisplayTipData}>
									<div class="text"><strong>{Literal}Other Tips{/Literal}</strong></div>
									<div class="num">{CreditCardTips}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{ShortOverText} {Literal}Cash{/Literal}</strong></div>
									<div class="num">{ShortCash}</div>
								</div>
								<div class="table-row item-row" {DisplayTipData}>
									<div class="text"><strong>{Literal}Total Tips{/Literal}</strong></div>
									<div class="num">{TotalCreditCardTips}</div>
								</div>
							</div>
						</div>
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
							<div class="table table-tender3">
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Payments on Accounts{/Literal}</strong></div>
									<div class="num">{CustomerPayments}</div>
								</div>	
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Cash Paid Out{/Literal}</strong></div>
									<div class="num">{PayoutsTotal}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Net Cash{/Literal}</strong></div>
									<div class="num">{NetCash}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="data-block block3">
					{USTaxBlock}<div 
					class="data-row width-50">
						<h2>{Literal}Tax Detail{/Literal}</h2>
						<div class="table-wrap">
							<div class="table table-tax">
								<div class="table-row table-header">
									<div class="text">{Literal}Tax Authority{/Literal}</div>
									<div class="text">{Literal}Authority{/Literal}</div>
									<div class="num">{Literal}Amount{/Literal}</div>
								</div>	
								{TaxBlock}
								<div class="table-row item-row">
									<div class="text">{TaxAuthority}</div>
									<div class="text">{AuthorityName}</div>
									<div class="num">{TaxAmount}</div>
								</div>
								{/TaxBlock}
								<div class="table-row table-totals">
									<div class="text"><strong>{Literal}Taxes Total{/Literal}</strong></div>
									<div class="text"></div>
									<div class="num">{TaxesTotal}</div>
								</div>
							</div>
						</div>
					</div>{/USTaxBlock}{VATBlock}<div 
					class="table-wrap width-50">
						<h2>{Literal}VAT Details{/Literal}</h2>
						<div class="table-wrap">
							<div class="table table-vat">
								<div class="table-row table-header">
									<div class="text"></div>
									<div class="num">{Literal}Total{/Literal}</div>
									<div class="num">{Literal}Amount{/Literal}</div>
								</div>	
								{VATDetailBlock}
								<div class="table-row item-row">
									<div class="text">{VatCode} - {VatDescription}</div>
									<div class="num">{VatTotal}</div>
									<div class="num">{VatAmount}</div>
								</div>
								{/VATDetailBlock}
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}VAT Total{/Literal}</strong></div>
									<div class="num"></div>
									<div class="num">{VATTotal}</div>
								</div>
								<div class="table-row item-row" {DisplayTipData}>
									<div class="text"><strong>{Literal}Auto Gratuity Total{/Literal}</strong></div>
									<div class="num"></div>
									<div class="num">{AutoGratuityTotal}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Customer Payment Total{/Literal}</strong></div>
									<div class="num"></div>
									<div class="num">{CustomerPaymentsTotal}</div>
								</div>
								<div class="table-row table-totals">
									<div class="text"><strong>{Literal}Total{/Literal}</strong></div>
									<div class="num"></div>
									<div class="num">{Total}</div>
								</div>
							</div>
						</div>
					</div>{/VATBlock}<div 
					class="data-row width-50">
						<h2>{Literal}Discounts{/Literal}</h2>
						<div class="table-wrap">
						
							<div class="table table-discounts">
								{CompTotalBlock}
								<div class="table-row item-row">
									<div class="text">{Literal}Comp Total{/Literal}</div>
									<div class="num">{CompTotal}</div>
								</div>
								{/CompTotalBlock}
								<div class="table-row item-row">
									<div class="text">{Literal}Sales Discount Total{/Literal}</div>
									<div class="num">{SalesDiscountTotal}</div>
								</div>
								<div class="table-row item-row">
									<div class="text">{Literal}Price Change Total{/Literal}</div>
									<div class="num">{SalesDiscountTotal}</div>
								</div>
								<div class="table-row table-totals">
									<div class="text"><strong>{Literal}Discounts Total{/Literal}</strong></div>
									<div class="num">{DiscountsTotal}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				{FoodServiceBlock}
				<div class="data-block block4">
					<div class="width-50">
						<h2>{Literal}Food Service{/Literal}</h2>
						<div class="table-wrap">
							<div class="table table-guests">
								<div class="table-row item-row">
									<div class="text">{Literal}Guest Count{/Literal}</div>
									<div class="num">{GuestCount}</div>
								</div>
								<div class="table-row item-row">
									<div class="text">{Literal}Avg. Check Amount{/Literal}</div>
									<div class="num">{AvgCheckAmount}</div>
								</div>
								<div class="table-row item-row">
									<div class="text">{Literal}Avg. Guest Amount{/Literal}</div>
									<div class="num">{AvgGuestAmount}</div>
								</div>
							</div>
						</div>
					</div><div class="width-50">
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
							<div class="table table-dinein">
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Dine In Count{/Literal}</strong></div>
									<div class="num">{DineInCount}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Dine In Amount{/Literal}</strong></div>
									<div class="num">{DineInTotal}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Dine In % of Total{/Literal}</strong></div>
									<div class="num">{DineInPercent}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Dine In % of Checks{/Literal}</strong></div>
									<div class="num">{DineInCheckPct}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Dine In % of Guests{/Literal}</strong></div>
									<div class="num">{DineInGuestPct}</div>
								</div>
							</div>
						</div>
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
							<div class="table table-takeout">
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Take Out Count{/Literal}</strong></div>
									<div class="num">{TakeOutCount}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Take Out Amount{/Literal}</strong></div>
									<div class="num">{TakeOutTotal}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Take Out % of Total{/Literal}</strong></div>
									<div class="num">{TakeOutPercent}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Take Out % of Checks{/Literal}</strong></div>
									<div class="num">{TakeOutCheckPct}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Take Out % of Guests{/Literal}</strong></div>
									<div class="num">{TakeOutGuestPct}</div>
								</div>
							</div>
						</div>
					</div><div 
					class="data-row width-33">
						<div class="table-wrap">
						
							<div class="table table-delivery">
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Delivery Count{/Literal}</strong></div>
									<div class="num">{DeliveryCount}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Delivery Amount{/Literal}</strong></div>
									<div class="num">{DeliveryTotal}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Delivery % of Total{/Literal}</strong></div>
									<div class="num">{DeliveryPercent}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Delivery % of Checks{/Literal}</strong></div>
									<div class="num">{DeliveryCheckPct}</div>
								</div>
								<div class="table-row item-row">
									<div class="text"><strong>{Literal}Delivery % of Guests{/Literal}</strong></div>
									<div class="num">{DeliveryGuestPct}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				{/FoodServiceBlock}
			
			</div>
			<div class="data-totals"></div>
		</main>

		<footer>
			<span>Powered by <a href="https://www.accupos.com" target="_blank">AccuPOS Point of Sale</a></span>
		</footer>
		
	</div>
</body>
</html>