-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ipy
102 lines (71 loc) · 1.33 KB
/
test.ipy
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
# coding: utf-8
from sys import stdin
import shtrihm as cm
cm.connect()
cm.setMode2()
# stdin.readline()
sale_options = {
'Quantity': 1,
'Price': 10,
'Department': 1,
'Tax1': 0,
'Tax2': 0,
'Tax3': 0,
'Tax4': 0,
'StringForPrinting': 'ongi jama majas vene jutuga?'
}
payment_options = {
'Summ1': 0.5,
'Summ2': 1.5,
'Summ3': 3,
'Summ4': 4,
'DiscountOnCheck': 10
}
cm.sale(sale_options, payment_options, cm.USER_KASSIR)
exit(0)
# v.Quantity=1000
# v.Price=1.56
# v.Department=1
# v.Tax1=1
# v.Tax2=2
# v.Tax3=0
# v.Tax4=0
# v.StringForPrinting= 'Спичечный коробок'
# v.Sale()
v.CutType = True
v.CutCheck()
v.StringQuantity = 2
v.FeedDocument()
v.StringForPrinting= 'Спичечный коробок'
v.PrintString()
v.StringQuantity = 1
v.FeedDocument()
v.CutType = True
v.CutCheck()
print "presale ECRMode " + ecr_mode_string(v.ECRMode)
stdin.readline()
exit(1)
v.Quantity=1000
v.Price=1.56
v.Department=1
v.Tax1=1
v.Tax2=2
v.Tax3=0
v.Tax4=0
v.StringForPrinting= 'Спичечный коробок'
v.Sale()
print "After sale ECRMode " + str(v.ECRMode)
stdin.readline()
v.Summ1 = 1500
v.Summ2 = 100
v.Summ3 = 200
v.Summ4 = 300
v.DiscountOnCheck = 5
v.Tax1 = 1
v.Tax2 = 2
v.Tax3 = 0
v.Tax4 = 0
v.StringForPrinting = '===================================='
print "close"
v.CloseCheck()
v.Discconnect()