-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwork.php
40 lines (34 loc) · 894 Bytes
/
work.php
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
<?php
include_once __DIR__ . '/printer.php';
$kassa = new AtolPrinter('http://10.1.1.57:16732');
print_r($kassa->checkConnect());
print_r($kassa->checkShift());
print_r($kassa->checkKKT());
$items = array();
for ($i=1;$i<4;$i++) {
$items[] = array(
'type' => 'position',
'name' => 'Бананы'.$i,
'price' => 1,
'quantity' => 1,
'amount' => 1,
'tax' => array('type' => 'none')
);
$i++;
$items[] = array(
'type' => 'text',
'text' => '--------------------------------',
'alignment' => 'left',
'font' => 0,
'doubleWidth' => false,
'doubleHeight' => false
);
}
//~ print_r($items);
$kassa->operator = 'Иванов';
print_r($kassa->printSellPaper($items));
sleep(10);
print_r($kassa->printSellReturnPaper($items));
if ($kassa->isShiftOpen()) {
$kassa->closeShift();
}