radboy 0.0.572__py3-none-any.whl → 0.0.573__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of radboy might be problematic. Click here for more details.
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/preloader/preloader.py +10 -0
- radboy/preloader/preloader_func.py +111 -1
- {radboy-0.0.572.dist-info → radboy-0.0.573.dist-info}/METADATA +1 -1
- {radboy-0.0.572.dist-info → radboy-0.0.573.dist-info}/RECORD +8 -8
- {radboy-0.0.572.dist-info → radboy-0.0.573.dist-info}/WHEEL +0 -0
- {radboy-0.0.572.dist-info → radboy-0.0.573.dist-info}/top_level.txt +0 -0
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.573'
|
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -436,4 +436,14 @@ Here:
|
|
|
436
436
|
'desc':f'A=BH/2',
|
|
437
437
|
'exec':area_triangle,
|
|
438
438
|
},
|
|
439
|
+
f'{uuid1()}':{
|
|
440
|
+
'cmds':['taxable kombucha',],
|
|
441
|
+
'desc':f'is kombucha taxable?[taxable=True,non-taxable=False]',
|
|
442
|
+
'exec':lambda: Taxable.kombucha(None),
|
|
443
|
+
},
|
|
444
|
+
f'{uuid1()}':{
|
|
445
|
+
'cmds':['taxable item',],
|
|
446
|
+
'desc':f'is item taxable?[taxable=True,non-taxable=False]',
|
|
447
|
+
'exec':lambda: Taxable.general_taxable(None),
|
|
448
|
+
},
|
|
439
449
|
}
|
|
@@ -83,4 +83,114 @@ def area_triangle():
|
|
|
83
83
|
elif isinstance(height,pint.Quantity) and isinstance(base,decimal.Decimal):
|
|
84
84
|
return ((height*unit_registry.Quantity(base,height.units))/2)
|
|
85
85
|
elif isinstance(height,decimal.Decimal) and isinstance(base,pint.Quantity):
|
|
86
|
-
return ((unit_registry.Quantity(height,base.units)*base)/2)
|
|
86
|
+
return ((unit_registry.Quantity(height,base.units)*base)/2)
|
|
87
|
+
|
|
88
|
+
class Taxable:
|
|
89
|
+
def general_taxable(self):
|
|
90
|
+
taxables=[
|
|
91
|
+
"Alcoholic beverages",
|
|
92
|
+
"Books and publications",
|
|
93
|
+
"Cameras and film",
|
|
94
|
+
"Carbonated and effervescent water",
|
|
95
|
+
"Carbonated soft drinks and mixes",
|
|
96
|
+
"Clothing",
|
|
97
|
+
"Cosmetics",
|
|
98
|
+
"Dietary supplements",
|
|
99
|
+
"Drug sundries, toys, hardware, and household goods",
|
|
100
|
+
"Fixtures and equipment used in an activity requiring the holding of a seller’s permit, if sold at retail",
|
|
101
|
+
"Food sold for consumption on your premises (see Food service operations)",
|
|
102
|
+
"Hot prepared food products (see Hot prepared food products)",
|
|
103
|
+
"Ice",
|
|
104
|
+
"Kombucha tea (if alcohol content is 0.5 percent or greater by volume)",
|
|
105
|
+
"Medicated gum (for example, Nicorette and Aspergum)",
|
|
106
|
+
"Newspapers and periodicals",
|
|
107
|
+
"Nursery stock",
|
|
108
|
+
"Over-the-counter medicines (such as aspirin, cough syrup, cough drops, and throat lozenges)",
|
|
109
|
+
"Pet food and supplies",
|
|
110
|
+
"Soaps or detergents",
|
|
111
|
+
"Sporting goods",
|
|
112
|
+
"Tobacco products",
|
|
113
|
+
]
|
|
114
|
+
nontaxables=[
|
|
115
|
+
"Baby formulas (such as Isomil)",
|
|
116
|
+
"Cooking wine",
|
|
117
|
+
"Energy bars (such as PowerBars)",
|
|
118
|
+
"""Food products—This includes baby food, artificial sweeteners, candy, gum, ice cream, ice cream novelties,
|
|
119
|
+
popsicles, fruit and vegetable juices, olives, onions, and maraschino cherries. Food products also include
|
|
120
|
+
beverages and cocktail mixes that are neither alcoholic nor carbonated. The exemption applies whether sold in
|
|
121
|
+
liquid or frozen form.""",
|
|
122
|
+
"Granola bars",
|
|
123
|
+
"Kombucha tea (if less than 0.5 percent alcohol by volume and naturally effervescent)",
|
|
124
|
+
"Sparkling cider",
|
|
125
|
+
"Noncarbonated sports drinks (including Gatorade, Powerade, and All Sport)",
|
|
126
|
+
"Pedialyte",
|
|
127
|
+
"Telephone cards (see Prepaid telephone debit cards and prepaid wireless cards)",
|
|
128
|
+
"Water—Bottled noncarbonated, non-effervescent drinking water",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
taxables_2=[
|
|
132
|
+
"Alcoholic beverages",
|
|
133
|
+
'''Carbonated beverages, including semi-frozen beverages
|
|
134
|
+
containing carbonation, such as slushies (see Carbonated fruit
|
|
135
|
+
juices)''',
|
|
136
|
+
"Coloring extracts",
|
|
137
|
+
"Dietary supplements",
|
|
138
|
+
"Ice",
|
|
139
|
+
"Over-the-counter medicines",
|
|
140
|
+
"Tobacco products",
|
|
141
|
+
"non-human food",
|
|
142
|
+
"Kombucha tea (if >= 0.5% alcohol by volume and/or is not naturally effervescent)",
|
|
143
|
+
]
|
|
144
|
+
for i in taxables_2:
|
|
145
|
+
if i not in taxables:
|
|
146
|
+
taxables.append(i)
|
|
147
|
+
|
|
148
|
+
ttl=[]
|
|
149
|
+
for i in taxables:
|
|
150
|
+
ttl.append(i)
|
|
151
|
+
for i in nontaxables:
|
|
152
|
+
ttl.append(i)
|
|
153
|
+
htext=[]
|
|
154
|
+
cta=len(ttl)
|
|
155
|
+
ttl=sorted(ttl,key=str)
|
|
156
|
+
for num,i in enumerate(ttl):
|
|
157
|
+
htext.append(std_colorize(i,num,cta))
|
|
158
|
+
htext='\n'.join(htext)
|
|
159
|
+
while True:
|
|
160
|
+
print(htext)
|
|
161
|
+
select=Control(func=FormBuilderMkText,ptext="Please select all indexes that apply to item?",helpText=htext,data="list")
|
|
162
|
+
if select is None:
|
|
163
|
+
return
|
|
164
|
+
for i in select:
|
|
165
|
+
try:
|
|
166
|
+
index=int(i)
|
|
167
|
+
if ttl[index] in taxables:
|
|
168
|
+
return True
|
|
169
|
+
except Exception as e:
|
|
170
|
+
print(e)
|
|
171
|
+
return False
|
|
172
|
+
def kombucha(self):
|
|
173
|
+
'''determine if kombucha is taxable'''
|
|
174
|
+
fd={
|
|
175
|
+
'Exceeds 0.5% ABV':{
|
|
176
|
+
'default':False,
|
|
177
|
+
'type':'boolean',
|
|
178
|
+
},
|
|
179
|
+
'Is it Naturally Effervescent?':{
|
|
180
|
+
'default':False,
|
|
181
|
+
'type':'boolean',
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
}
|
|
185
|
+
data=FormBuilder(data=fd)
|
|
186
|
+
if data is None:
|
|
187
|
+
return
|
|
188
|
+
else:
|
|
189
|
+
if data['Exceeds 0.5% ABV']:
|
|
190
|
+
return True
|
|
191
|
+
|
|
192
|
+
if not data['Is it Naturally Effervescent?']:
|
|
193
|
+
return True
|
|
194
|
+
|
|
195
|
+
return False
|
|
196
|
+
|
|
@@ -5,7 +5,7 @@ radboy/Holidays.txt,sha256=y-JZPihh5iaWKxMIHNXD39yVuVmf1vMs4FdNDcg0f1Y,3114
|
|
|
5
5
|
radboy/InventoryGlossary.txt,sha256=018-Yqca6DFb10jPdkUY-5qhkRlQN1k3rxoTaERQ-LA,91008
|
|
6
6
|
radboy/RecordMyCodes.py,sha256=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=dC1Jh63ufXJyIrO63fG5tZoIKheWkv6BWtxnwYXTGo8,17
|
|
9
9
|
radboy/api_key,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
radboy/case-export-2024-05-14-13-10-00.672971.xlsx,sha256=Wd592d_VLFmfUI9KKKSVjNwjV91euc1T7ATyvwvUhlg,5431
|
|
11
11
|
radboy/case-export-2024-05-14-13-13-22.540614.xlsx,sha256=OnGrhmScHfGp_mVaWW-LNMsqrQgyZDpiU3wV-2s3U5Q,5556
|
|
@@ -399,7 +399,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
399
399
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
400
400
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
401
401
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
402
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
402
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=FZxIJkrzsrqj1r_b41gKp2X7uOgImuzj5UXFJLi3C44,165
|
|
403
403
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
404
404
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
405
405
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -409,8 +409,8 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
|
|
|
409
409
|
radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
|
|
410
410
|
radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
|
|
411
411
|
radboy/preloader/__init__.py,sha256=lrGR0JF0dkDM8N9ORGUKH_MucUFx1-PI38YsvqS-wgA,926
|
|
412
|
-
radboy/preloader/preloader.py,sha256=
|
|
413
|
-
radboy/preloader/preloader_func.py,sha256=
|
|
412
|
+
radboy/preloader/preloader.py,sha256=SX7wmdp3-H5FT7TAcqcImT8XSPcvG25sfIKGfVBqTDo,12778
|
|
413
|
+
radboy/preloader/preloader_func.py,sha256=Y0_6_gdvV0AAmTptxzcnuej9RS2nD9A2ii-PpflB0J8,5845
|
|
414
414
|
radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
415
415
|
radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
|
|
416
416
|
radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
|
|
@@ -427,7 +427,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
427
427
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
428
428
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
429
429
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
430
|
-
radboy-0.0.
|
|
431
|
-
radboy-0.0.
|
|
432
|
-
radboy-0.0.
|
|
433
|
-
radboy-0.0.
|
|
430
|
+
radboy-0.0.573.dist-info/METADATA,sha256=67vVViZeodiQi3Bs0eLOa8ddFx3Thugc5WInB3EJJV4,1636
|
|
431
|
+
radboy-0.0.573.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
432
|
+
radboy-0.0.573.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
433
|
+
radboy-0.0.573.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|