-
Notifications
You must be signed in to change notification settings - Fork 381
/
index.html
1239 lines (1208 loc) · 76.4 KB
/
index.html
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html manifest="/wpos.appcache">
<head>
<meta name="copyright" content="Copyright (c) 2014 WallaceIT <[email protected]> <https://www.gnu.org/licenses/lgpl.html>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WallacePOS</title>
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<link rel="apple-touch-icon" href="/assets/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="/assets/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="/assets/images/apple-touch-icon-114x114.png">
<!-- UI FRAMEWORK STYLES -->
<link type="text/css" rel="stylesheet" href="assets/css/wpos.css"/>
<link rel="stylesheet" href="/assets/css/jquery-ui-1.10.3.full.min.css"/>
<link href="/assets/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="/assets/css/font-awesome.min.css"/>
<!--[if IE 7]>
<link rel="stylesheet" href="/assets/css/font-awesome-ie7.min.css"/>
<![endif]-->
<!-- fonts -->
<link rel="stylesheet" href="/assets/css/ace-fonts.css"/>
<!-- ace styles -->
<link rel="stylesheet" href="/assets/css/ace.min.css"/>
<link rel="stylesheet" href="/assets/css/ace-rtl.min.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="/assets/css/ace-ie.min.css"/>
<![endif]-->
<link rel="stylesheet" href="/assets/libs/datatables/datatables.min.css"/>
<!-- UI FRAMEWORK SCRIPTS -->
<!--[if !IE]> -->
<script type="text/javascript" src="/assets/js/jquery-2.2.0.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script>
<![endif]-->
<script type="text/javascript">
if ("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/typeahead-bs2.min.js"></script>
<script src="/assets/js/jquery-ui-1.10.3.full.min.js"></script>
<script src="/assets/js/jquery.mustache.js"></script>
<!-- Wpos Libraries -->
<script type="text/javascript" src="/assets/js/wpos/core.js"></script>
<script type="text/javascript" src="/assets/js/wpos/sales.js"></script>
<script type="text/javascript" src="/assets/js/wpos/transactions.js"></script>
<script type="text/javascript" src="/assets/js/wpos/reports.js"></script>
<script type="text/javascript" src="/assets/js/wpos/print.js"></script>
<script type="text/javascript" src="/assets/js/wpos/orders.js"></script>
<script type="text/javascript" src="/assets/js/wpos/utilities.js"></script>
<script type="text/javascript" src="/assets/libs/webprint.js"></script>
<!-- Websocket library -->
<script type="text/javascript" src="/assets/libs/socketio/socket.io-1.4.5.js"></script>
<!-- POS Keypad -->
<link type="text/css" href="/assets/libs/jquery-keypad/jquery.keypad.css" rel="stylesheet">
<script type="text/javascript" src="/assets/libs/jquery-keypad/jquery.plugin.min.js"></script>
<script type="text/javascript" src="/assets/libs/jquery-keypad/jquery.keypad.min.js"></script>
<!-- Datatables -->
<script src="/assets/libs/datatables/datatables.min.js"></script>
<script src="/assets/libs/datatables/datatableSorting.js"></script>
</head>
<body style="overflow: hidden;">
<div id="wrapper">
<ul class="navbar overflow-hidden">
<li onclick="setItemListPadding();"><a href="#tabs-1">Till</a></li>
<li onclick="WPOS.trans.setupTransactionView();"><a href="#tabs-2">Sales</a></li>
<li onclick="WPOS.reports.populateOverview();"><a href="#tabs-3">Reports</a></li>
<li><a href="#tabs-4">Settings</a></li>
<button onClick="WPOS.logout();" style="float:right; height: 45px; padding: 6px 8px;" class="btn logout_btn"><i class="glyphicon glyphicon-log-out"></i>Logout</button>
<div style="float:right; vertical-align: middle; margin-top: 10px; text-align: right;">
<button title="Open Administration Dashboard" onClick="window.open('/admin');" style="margin-right: 4px; margin-left: 4px;" class="btn btn-xs btn-primary"><i class="icon icon-cog"> Admin</i></button>
<button title="Lock terminal or switch user" id="switch_user_btn" onClick="WPOS.lockSession();" style="margin-right: 4px; margin-left: 4px;" class="btn btn-xs btn-primary"><i class="icon icon-lock"></i> Lock</button>
<button title="Expand window" id="window_width_toggle" onClick="expandWindow();" style="margin-right: 4px; margin-left: 6px;" class="btn btn-xs btn-primary"><i class="icon icon-expand"></i></button>
</div>
</ul>
<div id="tabs-1">
<div id="sales">
<div style="width:100%;">
<div id="watermark"></div>
<div id="items" style="padding:0;" class="ui-widget-content">
<div style="margin-bottom: 10px;">
<div class="inline">
<div class="inline">
<label><div class="hlabel inline">Stock Code: </div><input style="width: 100px;" id="codeinput" type="text" onkeypress="if(event.keyCode=='13' || event.keyCode=='7'){ WPOS.items.addItemFromStockCode($('#codeinput').val()); }"/></label>
<button class="btn btn-xs field-button field-button-attach" style="vertical-align: top;" onclick="WPOS.items.addItemFromStockCode($('#codeinput').val());">Add</button>
</div>
<div class="inline">
<label><div class="hlabel inline">Stock Search: </div><input id="itemsearch" type="text"/></label>
</div>
</div>
<div class="wscan-btn inline" style="display: none !important;">
<button class="btn btn-sm inline field-button" onclick="$.wscan.scanOnce();"><i class="icon-barcode" style="vertical-align: top;"> x1</i></button>
<button class="btn btn-sm inline field-button" onclick="$.wscan.startScanning();"><i class="icon-barcode" style="vertical-align: top;"></i></button>
</div>
</div>
<div id="items_contain" style="overflow: auto; max-height: 458px;">
<table style="width: 100%; margin-bottom: 0;" class="table table-striped table-bordered">
<thead class="table-header">
<tr style="text-align: left">
<th>Qty</th>
<th>Name</th>
<th>Unit</th>
<th>Options</th>
<th>Tax</th>
<th>Price</th>
<th style="text-align: center;">X</th>
</tr>
</thead>
<tbody id="itemtable" style="overflow:auto;">
<tr class="order_row">
<td style="background-color:#438EB9; color:#FFF;" colspan="7"><h4 style="text-align: center; margin: 0;">New Order</h4></td>
</tr>
</tbody>
</table>
</div>
<span id="invaliditemnotice" style="float: left; display: none;" class="text-warning bigger-110 red">
<i class="icon-warning-sign"></i> Invalid items marked in red will not be added to the sale
</span>
<button style="float:right; font-size: 14px !important; margin-top:10px;" class="btn btn-sm btn-primary" onClick="WPOS.items.addManualItemRow();">Add Item</button>
</div>
<div id="totals">
<div id="totals-container">
<div class="totalsbox">
<div>
<div class="totalslabel">Subtotal:</div>
<div class="totalsval"><span id="subtotal">$0.00</span></div>
</div>
<div>
<div class="totalslabel">Discount:</div>
<div class="totalsval"><input onChange="WPOS.sales.updateDiscount();" size="2" id="salediscount" type="text" class="numpad" value="0" autocomplete="off"/><strong>%</strong> <span id="discounttxt">($0.00)</span></div>
</div>
</div>
<div class="totalsbox">
<div>
<div class="totalslabel">Tax:</div>
<div class="totalsval"><span id="totaltax">$0.00</span></div>
</div>
<div>
<div class="totalslabel">Total:</div>
<div class="totalsval"><span id="total">$0.00</span></div>
</div>
</div>
<div class="order_terminal_options" style="margin-top: 10px;">
<label class="fixedlabel" style="margin-right: 5px;"><input type="radio" id="radio_takeaway" name="eatin" value="0" onclick="$('#tablenumber').val(0).prop('readonly', true);" checked="checked"/><b> Take Away</b></label>
<label class="fixedlabel" style="margin-right: 5px;"><input type="radio" id="radio_eatin" name="eatin" value="1" onclick="$('#tablenumber').prop('readonly', false);"/><b> Eat In</b></label>
<label class="fixedlabel"><b>Table #:</b><input class="numpad" type="text" id="tablenumber" value="0" size="3" onclick="$('#radio_eatin').prop('checked', true); $(this).prop('readonly', false);" readonly="readonly"/></label>
</div>
<table style="margin-top: 10px; margin-bottom: 10px; width: 100%; text-align: left;" class="ui-widget-content">
<tr>
<th>Customer Email:</th>
<td>
<input id="custemail" type="email" onchange="WPOS.items.processNewEmail();" autocomplete="off"/>
<input id="custid" type="hidden" value="0" />
<button class="btn btn-xs btn-primary field-button field-button-attach" onclick="WPOS.items.openCustomerDialog($('#custid').val());">
Details
</button>
</td>
</tr>
<tr>
<th>Email Receipt:</th>
<td>
<input type="checkbox" id="emailreceipt" disabled="disabled" autocomplete="off" />
</td>
</tr>
<tr>
<th>Notes:</th>
<td><textarea id="salenotes" name="salenotes" autocomplete="off"></textarea></td>
</tr>
</table>
</div>
<div id="regkey-container" class="pull-right">
<div id="regkey-inner">
<div id="registerkeydiv">
<button class="regbtn btn btn-success" onClick="WPOS.sales.showPaymentDialog();">Process
</button>
<button class="regbtn btn btn-danger" onClick="WPOS.sales.userAbortSale();">Abort</button>
<button class="regbtn btn" onclick="WPOS.print.openCashDraw();">Till</button>
<button class="regbtn btn" onclick="WPOS.trans.recallLastTransaction();">Recall</button>
</div>
<div>
<button onclick="WPOS.trans.showTransactionView();" class="regbtn btn btn-primary"
style="width:153px; height:50px; display:inline-block;">Transactions
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="ibox" class="widget-body">
<div id="iboxhandle" class="header-color-blue"><i class="icon-chevron-left white"></i></div>
<div id="iboxitem_contain">
<div class="row">
<div id="iboxitems">
</div>
</div>
</div>
</div>
</div>
<div id="tabs-2">
<div id="remtransearch">
<label>Global Ref Lookup:</label><br/>
<label>Reference: <input id="remsearchref" type="text"/></label>
<button onclick="WPOS.trans.searchRemote();" class="btn btn-sm btn-primary" style="vertical-align:top;">Go</button>
<button onclick="WPOS.trans.clearSearch();" class="btn btn-sm btn-warning" style="vertical-align:top;">X</button>
</div>
<table id="transactiontable" style="text-align: left; width:100%;" class="table table-striped table-bordered table-hover dt-responsive">
<thead class="table-header">
<tr>
<th data-priority="1">GID</th>
<th data-priority="7">Ref</th>
<th data-priority="6">Device / Location</th>
<th data-priority="8">#Items</th>
<th data-priority="5">Total</th>
<th data-priority="3">Sale Time</th>
<th data-priority="4">Status</th>
<th data-priority="2"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="tabs-3">
<div class="row">
<div class="col-md-8">
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-list"></i>
Reports
</h4>
</div>
<div class="widget-body" style="padding-top: 10px; text-align: center;">
<div style="text-align: left;">
<div id="reportbuttons" class="inline hide">
<button class="btn btn-primary btn-sm" onclick="WPOS.reports.generateTakingsReport();">Takings Count</button>
<button class="btn btn-primary btn-sm" onclick="WPOS.reports.generateWhatsSellingReport();">What's Selling</button>
<button class="btn btn-primary btn-sm" onclick="WPOS.reports.generateSellerReport();">Seller Report</button>
</div>
<div id="tyroreports" class="hide" style="display: inline-block;">
<select id="tyroreptype" style="height: 34px; vertical-align: bottom; margin-left: 5px;">
<option value="summary" selected>Summary</option>
<option value="detail">Detailed</option>
</select>
<button class="btn btn-success btn-sm" onclick="WPOS.reports.generateTyroReport();">Tyro Report</button>
</div>
</div>
<hr>
<div style="text-align: left; margin-bottom: 10px; margin-left: 10px;">
<button class="btn btn-primary btn-xs" onclick="WPOS.print.printCurrentReport();"><i class="icon-print"></i> Print</button>
</div>
<div style="overflow-x: auto; padding: 10px; padding-top: 0;">
<div id="reportcontain">
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-dollar"></i>
Today's Takings
</h4>
</div>
<div class="widget-body" style="padding-top: 10px; text-align: center;">
<div class="infobox infobox-green ">
<div class="infobox-icon">
<i class="icon-shopping-cart"></i>
</div>
<div class="infobox-data">
<span id="rsalesnum" class="infobox-data-number">-</span>
<div class="infobox-content">Sales</div>
</div>
<div id="rsalestotal" class="stat stat-success">-</div>
</div>
<div class="infobox infobox-orange">
<div class="infobox-icon">
<i class="icon-backward"></i>
</div>
<div class="infobox-data">
<span id="rrefundsnum" class="infobox-data-number">-</span>
<div class="infobox-content">Refunds</div>
</div>
<div id="rrefundstotal" class="stat stat-important">-</div>
</div><br/>
<div class="infobox infobox-red">
<div class="infobox-icon">
<i class="icon-ban-circle"></i>
</div>
<div class="infobox-data">
<span id="rvoidsnum" class="infobox-data-number">-</span>
<div class="infobox-content">Voids</div>
</div>
<div id="rvoidstotal" class="stat stat-important">-</div>
</div>
<div class="infobox infobox-blue2">
<div class="infobox-icon">
<i class="icon-dollar"></i>
</div>
<div class="infobox-data">
<span id="rtotaltakings" class="infobox-data-number">-</span>
<div class="infobox-content">Takings</div>
</div>
</div>
</div>
</div>
<hr>
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-check"></i>
Cash Reconciliation
</h4>
</div>
<div class="widget-body" style="padding-top: 10px; text-align: center;">
<table class="table">
<tbody>
<tr>
<td style="text-align: right;">$100:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom100" value="0"/></td>
<td style="text-align: right;">$50:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom50" value="0"/></td>
</tr>
<tr>
<td style="text-align: right;">$20:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom20" value="0"/></td>
<td style="text-align: right;">$10:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom10" value="0"/></td>
</tr>
<tr>
<td style="text-align: right;">$5:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom5" value="0"/></td>
<td style="text-align: right;">$2:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom2" value="0"/></td>
</tr>
<tr>
<td style="text-align: right;">$1:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom1" value="0"/></td>
<td style="text-align: right;">50c:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom50c" value="0"/></td>
</tr>
<tr>
<td style="text-align: right;">20c:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom20c" value="0"/></td>
<td style="text-align: right;">10c:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom10c" value="0"/></td>
</tr>
<tr>
<td style="text-align: right;">5c:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recdenom5c" value="0"/></td>
<td style="text-align: right;">Float:</td>
<td><input onchange="WPOS.reports.calcReconcil();" type="text" size="4" id="recfloat" value="0"/></td>
</tr>
<tr>
<td colspan="2" style="text-align: right;">Takings - Float:</td>
<td colspan="2"><span id="rectakings"></span></td>
</tr>
<tr>
<td colspan="2" style="text-align: right;">Balance:</td>
<td colspan="2"><span id="recbalance"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="tabs-4">
<div class="tabbable">
<ul class="nav nav-tabs tab-size-bigger" id="myTab">
<li class="active">
<a data-toggle="tab" href="#settings-tab-1">
<i class="blue icon-cogs bigger-120"></i>
General
</a>
</li>
<li>
<a data-toggle="tab" href="#settings-tab-2">
<i class="green icon-print bigger-120"></i>
Printing
</a>
</li>
<li class="eftpos_settings hide">
<a data-toggle="tab" href="#settings-tab-3">
<i class="orange icon-credit-card bigger-120"></i>
Eftpos
</a>
</li>
</ul>
<div class="tab-content no-border">
<div id="settings-tab-1" class="tab-pane fade in active">
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-cogs"></i>
General
</h4>
</div>
<div class="widget-body" style="padding-top: 10px; text-align: left;">
<label>Use On-screen keypad: <input id="keypadset" type="checkbox" style="vertical-align: top;" onclick="WPOS.setLocalConfigValue('keypad', $('#keypadset').is(':checked'))"></label>
</div>
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-link"></i>
Registration
</h4>
</div>
<div class="widget-body" style="padding-top: 10px; text-align: left;">
<table class="table tab-pane">
<tr>
<td>Device ID: </td>
<td class="device_id"></td>
</tr>
<tr>
<td>Device Name: </td>
<td class="device_name"></td>
</tr>
<tr>
<td>Location Name: </td>
<td class="location_name"></td>
</tr>
<tr>
<td>Registration ID: </td>
<td class="devicereg_id"></td>
</tr>
<tr>
<td>Registration UUID: </td>
<td class="devicereg_uuid"></td>
</tr>
<tr>
<td>Registration DT: </td>
<td class="devicereg_dt"></td>
</tr>
</table>
<button id="backup_btn" class="btn-xs btn-success" onclick="WPOS.backupOfflineSales();">Backup Offline Sales</button>
<button class="btn-xs btn-warning" onclick="WPOS.resetLocalConfig();">Reset Local Config</button>
<button class="btn-xs btn-danger" onclick="WPOS.clearLocalData();">Clear Local Data</button>
<button class="btn-xs btn-primary" onclick="WPOS.refreshRemoteData();">Refresh Remote Data</button>
<button class="btn-xs btn-danger" onclick="WPOS.removeDeviceRegistration();">Remove Device Registration</button>
</div>
</div>
</div>
<div id="settings-tab-2" class="tab-pane fade">
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-print"></i>
Receipt Printing
</h4>
</div>
<div class="widget-body" style="padding-top: 10px; text-align: left;">
<div id="printsettings_receipts">
<div id="settings-list-1" class="panel-group accordion-style1 accordion-style2">
<div class="panel panel-default">
<div class="panel-heading">
<a href="#settings-1-1" data-parent="#settings-list-1" data-toggle="collapse" class="accordion-toggle collapsed">
<i class="icon-chevron-left pull-right" data-icon-hide="icon-chevron-down" data-icon-show="icon-chevron-left"></i>
<i class="icon-cogs bigger-130"></i>
General
</a>
</div>
<div class="panel-collapse collapse" id="settings-1-1">
<div class="panel-body">
<div class="settings-row">
<label>Ask to print: <select id="recask" onchange="WPOS.print.setGlobalPrintSetting('recask', $('#recask').val());" style="margin-right: 20px;">
<option value="ask">Always Ask</option>
<option value="email">Ask if not emailed</option>
<option value="print">Always Print</option>
</select></label>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<a href="#settings-1-2" data-parent="#settings-list-1" data-toggle="collapse" class="accordion-toggle">
<i class="icon-chevron-left pull-right" data-icon-hide="icon-chevron-down" data-icon-show="icon-chevron-left"></i>
<i class="icon-adjust bigger-130"></i>
Connection
</a>
</div>
<div class="panel-collapse in" id="settings-1-2">
<div class="panel-body">
<div class="settings-row" style="display: inline-block;">
<label style="margin-right: 20px;">Method:
<select class="psetting_method" onchange="WPOS.print.setPrintSetting('receipts', 'method', $(this).val())">
<option value="br">
browser printing
</option>
<option value="wp" class="wp-option">
Web Print ESCP
</option>
</select>
</label>
<label class="advprintoptions">Type:
<select class="psetting_type" onchange="WPOS.print.setPrintSetting('receipts', 'type', $(this).val())">
<option value="serial">
Serial
</option>
<option value="raw">
Raw
</option>
<option value="tcp">
Raw TCP
</option>
</select>
</label>
</div>
<div class="advprintoptions settings-row" style="display: inline-block;">
<div class="tcpoptions" style="display: inline-block;">
<label style="margin-right: 20px;">Printer IP:
<input class="psetting_printerip" size="16" onchange="WPOS.print.setPrintSetting('receipts', 'printerip', $(this).val());" placeholder="192.168.1.100" type="text">
</label>
<label>Printer Port:
<input class="psetting_printerport" size="6" onchange="WPOS.print.setPrintSetting('receipts', 'printerport', $(this).val());" placeholder="9100" type="text">
</label>
</div>
<div class="rawoptions" style="display: inline-block;">
<label>Printer:
<select class="psetting_printer" onchange="WPOS.print.setPrintSetting('receipts', 'printer', $(this).val());">
</select>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.populatePrinters();"><i class="icon-refresh"></i></button>
</label>
</div>
<div class="serialoptions" style="display: inline-block;">
<label>Port:
<select class="psetting_port" onchange="WPOS.print.setPrintSetting('receipts', 'port', $(this).val());"></select>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.populatePorts();"><i class="icon-refresh"></i></button>
</label>
<label>Baud:
<select class="psetting_baud" onchange="WPOS.print.setPrintSetting('receipts', 'baud', $(this).val());">
<option value="4800">4800</option>
<option value="9600">9600</option>
<option value="19200">19200</option>
<option value="38400">38400</option>
<option value="57600">57600</option>
<option value="115200">115200</option>
</select>
</label>
<label>Data Bits:
<select class="psetting_databits" onchange="WPOS.print.setPrintSetting('receipts', 'databits', $(this).val());">
<option value="7">7</option>
<option value="8">8</option>
</select>
</label>
<label>Stop Bits:
<select class="psetting_stopbits" onchange="WPOS.print.setPrintSetting('receipts', 'stopbits', $(this).val());">
<option value="1">1</option>
<option value="0">0</option>
</select>
</label>
<label>Parity:
<select class="psetting_parity" onchange="WPOS.print.setPrintSetting('receipts', 'parity', $(this).val());">
<option value="none">None</option>
<option value="even">Even</option>
<option value="odd">Odd</option>
</select>
</label>
<label>Flow Control:
<select class="psetting_flow" onchange="WPOS.print.setPrintSetting('receipts', 'flow', $(this).val());">
<option value="none">None</option>
<option value="xonxoff">XON/XOFF</option>
<option value="rtscts">RTS/CTS</option>
</select>
</label>
</div>
</div>
<div class="settings-row printoptions" style="display: inline-block;">
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.testReceiptPrinter('receipts');">Test</button>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.printQrCode();">Print QR</button>
</div>
</div>
</div>
</div>
<div class="panel panel-default escpoptions">
<div class="panel-heading">
<a href="#settings-1-3" data-parent="#settings-list-1" data-toggle="collapse" class="accordion-toggle collapsed">
<i class="icon-chevron-left pull-right" data-icon-hide="icon-chevron-down" data-icon-show="icon-chevron-left"></i>
<i class="icon-dollar bigger-130"></i>
Cashdraw, Cutter & Page Feed
</a>
</div>
<div class="panel-collapse collapse" id="settings-1-3">
<div class="panel-body">
<div class="settings-row">
<label>Cash Draw Connected: <input onchange="WPOS.print.setGlobalPrintSetting('cashdraw', $('#cashdraw').is(':checked'));" id="cashdraw" type="checkbox" style="margin-right:20px; vertical-align:top;" /></label>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.openCashDraw();">Test</button>
</div>
<div class="settings-row">
<label style="margin-right: 20px;">Cutter Command:
<select class="psetting_cutter" onchange="WPOS.print.setPrintSetting('receipts', 'cutter', $(this).val());">
<option value="none">None</option>
<option value="gs_full">GS full cut</option>
<option value="gs_partial">GS partial cut</option>
<option value="esc_full">ESC full cut</option>
<option value="esc_partial">ESC partial cut</option>
</select>
</label>
<label>Page Feed:
<input class="psetting_feed" type="number" onchange="WPOS.print.setPrintSetting('receipts', 'feed', parseInt($(this).val()));">
</label>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<a href="#settings-1-4" data-parent="#settings-list-1" data-toggle="collapse" class="accordion-toggle collapsed">
<i class="icon-chevron-left pull-right" data-icon-hide="icon-chevron-down" data-icon-show="icon-chevron-left"></i>
<i class="icon-list bigger-130"></i>
Format & Layout
</a>
</div>
<div class="panel-collapse collapse" id="settings-1-4">
<div class="panel-body">
<div class="settings-row escpoptions">
<label style="margin-right:20px">ESCP Receipt Mode: <select id="escpreceiptmode" onchange="WPOS.print.setGlobalPrintSetting('escpreceiptmode', $('#escpreceiptmode').val());">
<option value="text">Text</option>
<option value="bitmap">Bitmap (Unicode support)</option>
</select></label>
</div>
<div class="settings-row">
<label id="rectemplatefield" style="margin-right:20px">Receipt Template: <select id="rectemplate" onchange="WPOS.print.setGlobalPrintSetting('rectemplate', $('#rectemplate').val());">
</select></label>
<label class="broptions" style="margin-right:20px">Invoice Template: <select id="invtemplate" onchange="WPOS.print.setGlobalPrintSetting('invtemplate', $('#invtemplate').val());" style="margin-right: 20px;">
</select></label>
<label class="broptions"><input type="checkbox" id="printinv" onchange="WPOS.print.setGlobalPrintSetting('printinv', $('#printinv').is(':checked'));"/> Print Invoices By Default</label>
</div>
<div class="settings-row escptextmodeoptions">
<label style="margin-right: 20px;">Language:
<select id="rec_language" onchange="WPOS.print.setGlobalPrintSetting('rec_language', $('#rec_language').val());">
<option value="primary">Primary</option>
<option value="mixed">Mixed</option>
<option value="alternate">Alternate</option>
</select>
</label>
<label>Orientation
<select id="rec_orientation" onchange="WPOS.print.setGlobalPrintSetting('rec_orientation', $('#rec_orientation').val());">
<option value="ltr">Left to Right</option>
<option value="rtl">Right to Left</option>
</select>
</label>
</div>
<div class="settings-row escptextmodeoptions">
<label>Alternate Charset & codepage:
<select id="alt_charset" onchange="WPOS.print.setGlobalPrintSetting('alt_charset', $('#alt_charset').val());">
<option value="pc864">PC864</option>
<option value="pc1256">PC1256</option>
</select>
<input id="alt_codepage" onchange="WPOS.print.setGlobalPrintSetting('alt_codepage', $('#alt_codepage').val());" type="number" />
</label>
</div>
<div class="settings-row escptextmodeoptions">
<label>Override currency character
<input type="checkbox" id="currency_override" onchange="WPOS.print.setGlobalPrintSetting('currency_override', $('#currency_override').is(':checked'));"/>
</label><br/>
<label style="margin-right:20px">
Currency Codepage:
<input id="currency_codepage" onchange="WPOS.print.setGlobalPrintSetting('currency_codepage', $('#currency_codepage').val());" type="number" />
</label>
<label>
Currency Codes:
<input id="currency_codes" onchange="WPOS.print.setGlobalPrintSetting('currency_codes', $('#currency_codes').val());" type="text" />
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="printsettings_kitchen" class="order_terminal_options widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-print"></i>
Order Ticket Printing
</h4>
</div>
<div class="settings-row" style="display: inline-block;">
<label>Method:
<select class="psetting_method" onchange="WPOS.print.setPrintSetting('kitchen', 'method', $(this).val())">
<option value="wp" class="wp-option">
Web Print ESCP
</option>
</select>
</label>
</div>
<div class="advprintoptions settings-row" style="display: inline-block;">
<label style="margin-right: 20px;">Type:
<select class="psetting_type" onchange="WPOS.print.setPrintSetting('kitchen', 'type', $(this).val())">
<option value="serial">
Serial
</option>
<option value="raw">
Raw
</option>
<option value="tcp">
Raw TCP
</option>
</select>
</label>
<div class="tcpoptions" style="display: inline-block;">
<label style="margin-right: 20px">Printer IP:
<input class="psetting_printerip" size="16" onchange="WPOS.print.setPrintSetting('kitchen', 'printerip', $(this).val());" placeholder="192.168.1.100" type="text">
</label>
<label>Printer Port:
<input class="psetting_printerport" size="6" onchange="WPOS.print.setPrintSetting('kitchen', 'printerport', $(this).val());" placeholder="9100" type="text">
</label>
</div>
<div class="rawoptions" style="display: inline-block;">
<label>Printer:
<select class="psetting_printer" onchange="WPOS.print.setPrintSetting('kitchen', 'printer', $(this).val());">
</select>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.populatePrinters();"><i class="icon-refresh"></i></button>
</label>
</div>
<div class="serialoptions" style="display: inline-block;">
<label>Port:
<select class="psetting_port" onchange="WPOS.print.setPrintSetting('kitchen', 'port', $(this).val());">
</select>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.populatePorts();"><i class="icon-refresh"></i></button>
</label><br/>
<label>Baud:
<select class="psetting_baud" onchange="WPOS.print.setPrintSetting('kitchen', 'baud', $(this).val());">
<option value="4800">4800</option>
<option value="9600">9600</option>
<option value="19200">19200</option>
<option value="38400">38400</option>
<option value="57600">57600</option>
<option value="115200">115200</option>
</select>
</label>
<label>Data Bits:
<select class="psetting_databits" onchange="WPOS.print.setPrintSetting('kitchen', 'databits', $(this).val());">
<option value="7">7</option>
<option value="8">8</option>
</select>
</label>
<label>Stop Bits:
<select class="psetting_stopbits" onchange="WPOS.print.setPrintSetting('kitchen', 'stopbits', $(this).val());">
<option value="1">1</option>
<option value="0">0</option>
</select>
</label>
<label>Parity:
<select class="psetting_parity" onchange="WPOS.print.setPrintSetting('kitchen', 'parity', $(this).val());">
<option value="none">none</option>
<option value="even">even</option>
<option value="odd">odd</option>
</select>
</label>
</div>
</div>
<div class="settings-row printoptions" style="display: inline-block;">
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.testReceiptPrinter('kitchen');">Test</button>
</div>
</div>
<div id="printsettings_reports" class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-print"></i>
Report Printing
</h4>
</div>
<div class="settings-row" style="display: inline-block;">
<label>Method:
<select class="psetting_method" onchange="WPOS.print.setPrintSetting('reports', 'method', $(this).val())">
<option value="br">
browser printing
</option>
<option value="wp" class="wp-option">
Web Print
</option>
</select></label>
</div>
<div class="advprintoptions settings-row" style="display: inline-block;">
<label>Printer:
<select class="psetting_printer" onchange="WPOS.print.setPrintSetting('reports', 'printer', $(this).val());">
</select>
<button class="btn btn-primary btn-xs field-button" onclick="WPOS.print.populatePrinters();"><i class="icon-refresh"></i></button>
</label>
</div>
</div>
<div class="printserviceoptions widget-box transparent" style="padding-top: 10px; text-align: left;">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-cogs"></i>
Print Service options (WebPrint/Android)
</h4>
</div>
<div class="settings-row" style="display: inline-block;">
<label>IP Address: <input id="serviceip" type="text" onchange="WPOS.print.setGlobalPrintSetting('serviceip', $(this).val());" value="127.0.0.1"></label>
<label>Port: <input id="serviceport" type="text" onchange="WPOS.print.setGlobalPrintSetting('serviceport', $(this).val());" value="8080"></label>
</div>
</div>
</div>
</div>
</div>
<div id="settings-tab-3" class="tab-pane fade eftpos_settings hide">
<div class="widget-box transparent">
<div class="widget-header widget-header-flat">
<h4 class="lighter">
<i class="icon-credit-card"></i>
Integrated Eftpos
</h4>
</div>
<div class="widget-body eftpos_settings hide" style="padding-top: 10px; text-align: left;">
<div class="settings-row" style="display: inline-block;">
<label>Provider:
<select id="eftposprovider" style="vertical-align: middle; margin-right: 20px;" onchange="WPOS.eftpos.setEftposSetting('provider', $('#eftposenabled').val());">
<option value="tyro">Tyro</option>
</select></label>
<label>Enabled: <input id="eftposenabled" type="checkbox" onclick="WPOS.eftpos.setEftposSetting('enabled', $('#eftposenabled').is(':checked'));" style="vertical-align: top; margin-right: 20px;"></label>
<label>Integrated Receipts: <input id="eftposreceipts" type="checkbox" onclick="WPOS.eftpos.setEftposSetting('receipts', $('#eftposreceipts').is(':checked'));" style="vertical-align: top;"></label>
</div>
<div id="eftrecsettings" class="settings-row" style="display: inline-block;">
<label>Print Merchant Receipts: <select id="eftposmerchrec" style="margin-right: 20px;" onchange="WPOS.eftpos.setEftposSetting('merchrec', $('#eftposmerchrec option:selected').val());">
<option value="ask">Always Ask</option>
<option value="print">Always Print</option>
<option value="never">Never</option>
</select></label>
<label>Print Declined Customer Receipts: <select id="eftposcustrec" onchange="WPOS.eftpos.setEftposSetting('custrec', $('#eftposcustrec option:selected').val());">
<option value="ask">Always Ask</option>
<option value="print">Always Print</option>
<option value="never">Never</option>
</select></label>
</div>
<div id="tyroprovopt" class="settings-row eftposprovopt hide" style="display: inline-block;">
<label>Merchant ID: <input type="text" id="tyromid" style="margin-right: 20px; width: 60px;"/></label>
<label>Terminal ID: <input type="text" id="tyrotid" style="margin-right: 20px; width: 60px;"/></label>
<button class="btn-primary btn-xs btn" onclick="WPOS.eftpos.doTyroPairing();">Start Tyro Pairing</button>
<button class="btn-primary btn-xs btn" onclick="WPOS.eftpos.openTyroConfiguration();">Open Terminal Config</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="statusbar" style="width:100%; position:absolute; bottom:0; min-height:40px; background-color:#666666; padding-top: 10px;">
<div class="col-sm-3 col-xs-6" style="vertical-align: middle;">
<div id="printstat">
<i class="icon-print icon-large white" style="margin-right: 5px;"></i> <span id="printstattxt" class="white">Initializing...</span>
</div>
</div>
<div id="wposstat" class="col-sm-3 col-sm-push-6 col-xs-6 text-right">
<span id="wposstattxt" class="white">WPOS is Online</span>
<span id="wposstaticon" class="badge badge-success" style="margin-left: 5px;"><i class="icon-ok"></i></span>
</div>
<div class="col-sm-6 col-sm-pull-3 text-center white" style="padding-bottom: 10px;">
<span class="biz_name"></span> - <span class="device_name"></span> - <span class="location_name"></span>
</div>
</div><iframe id="dlframe" style="width: 1px;height: 1px; border: 0; position: absolute; bottom: 0; left: 0; z-index: -1;"></iframe>
</div>
<div id="loginmodal" class="login-layout">
<div id="loginbox" class="login-box widget-box visible no-border">
<div class="widget-main">
<h2 class="header blue lighter bigger">
<img style="height: 40px; margin-top: -5px;" src="/assets/images/apple-touch-icon-72x72.png"> WallacePOS
</h2>
<div class="space-2"></div>
<div id="login-banner" class="alert alert-block alert-success" style="display:none;">
<i class="icon icon-lock green" style="margin-right: 3px;"></i>
<span id="login-banner-txt"></span>
</div>
<div class="space-10"></div>
<div id="logindiv" style="display: none;">
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input class="form-control" id="username" name="username" type="text" placeholder="Username"/>
<i class="icon-user"></i>
</span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input class="form-control" id="password" name="password" onkeypress="if(event.keyCode == 13){WPOS.userLogin();}" type="password" placeholder="Password"/>
<i class="icon-lock"></i>
</span>
</label>
<div class="space-6"></div>
<div class="space-6"></div>
<button id="loginbutton" onClick="WPOS.userLogin();" class="btn btn-primary width-35" disabled>
<i class="icon-key"></i>Login
</button>
<div class="space-6"></div>
</div>
<div id="loadingdiv" style="height: 225px;">
<h3 id="loadingbartxt">Initializing</h3>
<div id="loadingprogdiv" class="progress progress-striped active">
<div class="progress-bar" id="loadingprog" style="width: 100%;"></div>
</div>
<span id="loadingstat"></span>
</div>
</div>
</div>
</div>
<div id="paymentsdiv" style="display:none; padding:5px;" title="Complete Sale">
<table width="100%" class="ui-widget-content">
<tr>
<td><strong style="width: 60px; display: inline-block;">Total:</strong><span id="salestotal">$0.00</span></td>
<td><strong style="width: 80px; display: inline-block;">Payments:</strong><span id="paymentstotal">$0.00</span></td>
</tr>
<tr>
<td><strong style="width: 60px; display: inline-block;">Balance:</strong><span id="salesbalance">$0.00</span></td>
<td><strong style="width: 80px; display: inline-block;">Change:</strong><span id="saleschange">$0.00</span></td>
</tr>
</table>
<div style="height:250px; overflow:auto; padding:0;">
<table style="width: 100%; text-align: left;" class="table table-striped table-bordered table-hover">
<thead class="table-header">
<tr>
<th>Method</th>
<th>Amount</th>
<th>X</th>
</tr>
</thead>
<tbody id="paymentstable">
</tbody>
</table>
<div style="text-align: center;">
<button id="eftpospaybtn" class="btn btn-sm btn-success" onclick="WPOS.sales.startEftposPayment();">Start Eftpos</button>
</div>
<div style="margin-top: 20px;">
<button class="btn btn-xs btn-primary" onclick="WPOS.sales.addPayment('cash');">Cash</button>
<button class="btn btn-xs btn-primary" onclick="WPOS.sales.addPayment('credit');">Credit</button>
<button class="btn btn-xs btn-primary" onclick="WPOS.sales.addPayment('eftpos');">Eftpos</button>
<button class="btn btn-xs btn-primary" onclick="WPOS.sales.addPayment('cheque');">Cheque</button>
<button style="float: right;" class="btn btn-xs btn-primary" onclick="WPOS.sales.addAdditionalPayment();">Add Payment</button>
</div>
</div>
<button id="endsalebtn" class="btn btn-success" onclick="WPOS.sales.processSale();">Complete</button>
<button id="savesalebtn" class="btn btn-primary" onclick="WPOS.sales.saveOrder();">Add Order</button>
<button class="btn btn-danger" onClick="$('#paymentsdiv').dialog('close');">Cancel</button>
</div>
<div id="custdiv" style="display:none;" title="Customer Details">
<form id="custform">
<label style="width: 80px;">Name:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custname"/><br/>
<label style="width: 80px;">Phone:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custphone"/><br/>
<label style="width: 80px;">Mobile:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custmobile"/><br/>
<label style="width: 80px;">Address:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custaddress"/><br/>
<label style="width: 80px;">Suburb:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custsuburb"/><br/>
<label style="width: 80px;">Postcode:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custpostcode"/><br/>
<label style="width: 80px;">Country:</label><input onchange="WPOS.sales.setUpdateCust();" type="text" id="custcountry"/><br/>
</form>
<div style="text-align: center; margin-top: 10px;">
<button class="btn btn-primary" onclick="$('#custdiv').dialog('close');">Close</button>
</div>
</div>
<div id="transactiondiv" style="display:none; padding: 4px; min-height: 450px;" title="Transaction Details">
<div id="transactioninfo">
<div class="row" style="padding-top: 8px; margin: 0;">
<div class="col-sm-6">
<label class="fixedlabel">Status:</label> <span id="transstat"></span><br/>
<label class="fixedlabel">ID:</label> <span id="transid"></span><br/>
<label class="fixedlabel">Ref:</label> <span id="transref"></span><br/>
<label class="fixedlabel">Sale DT:</label> <span id="transtime"></span><br/>
</div>
<div class="col-sm-6">
<label class="fixedlabel">Process DT:</label> <span id="transptime"></span><br/>
<label class="fixedlabel">User:</label> <span id="transuser"></span><br/>
<label class="fixedlabel">Device:</label> <span id="transdev"></span><br/>
<label class="fixedlabel">Location:</label> <span id="transloc"></span><br/>
</div>
<div class="col-sm-6">
<label style="vertical-align: top;" class="fixedlabel">Notes:
<textarea style="margin-left: 38px;" id="transnotes" tabindex="-1"></textarea><br/>
<button style="float: right;" class="btn btn-xs btn-primary" onclick="WPOS.trans.updateSaleNotes($('#transref').text(), $('#transnotes').text());">Save</button>
</label>
</div>
<div id="transoptions" style="text-align: center; margin-bottom: 10px; margin-top: 10px;" class="col-sm-6">
<div id="voidbuttons" style="display: inline-block;">
<button class="btn btn-danger" onclick="WPOS.sales.openVoidDialog($('#transref').text());"><i class="icon-ban-circle"></i> Void</button>
<button class="btn btn-warning" onclick="WPOS.sales.openRefundDialog($('#transref').text());"><i class="icon-backward"></i> Refund</button>
</div>