radboy 0.0.661__py3-none-any.whl → 0.0.663__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 +20 -0
- radboy/preloader/preloader_func.py +60 -1
- {radboy-0.0.661.dist-info → radboy-0.0.663.dist-info}/METADATA +1 -1
- {radboy-0.0.661.dist-info → radboy-0.0.663.dist-info}/RECORD +8 -8
- {radboy-0.0.661.dist-info → radboy-0.0.663.dist-info}/WHEEL +0 -0
- {radboy-0.0.661.dist-info → radboy-0.0.663.dist-info}/top_level.txt +0 -0
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.663'
|
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -446,6 +446,26 @@ Here:
|
|
|
446
446
|
'desc':f'is item taxable?[taxable=True,non-taxable=False]',
|
|
447
447
|
'exec':lambda: Taxable.general_taxable(None),
|
|
448
448
|
},
|
|
449
|
+
f'{uuid1()}':{
|
|
450
|
+
'cmds':['price * rate',],
|
|
451
|
+
'desc':f'multiply a price times its tax rate ; {Fore.orange_red_1}Add this value to the price for the {Fore.light_steel_blue}Total{Style.reset}',
|
|
452
|
+
'exec':lambda: price_by_tax(total=False),
|
|
453
|
+
},
|
|
454
|
+
f'{uuid1()}':{
|
|
455
|
+
'cmds':['( price + crv ) * rate',],
|
|
456
|
+
'desc':f'multiply a (price+crv) times its tax rate ; {Fore.orange_red_1}Add this value to the price for the {Fore.light_steel_blue}Total{Style.reset}',
|
|
457
|
+
'exec':lambda: price_plus_crv_by_tax(total=False),
|
|
458
|
+
},
|
|
459
|
+
f'{uuid1()}':{
|
|
460
|
+
'cmds':['price * rate',],
|
|
461
|
+
'desc':f'multiply a price times its tax rate + price return the total',
|
|
462
|
+
'exec':lambda: price_by_tax(total=True),
|
|
463
|
+
},
|
|
464
|
+
f'{uuid1()}':{
|
|
465
|
+
'cmds':['( price + crv ) * rate',],
|
|
466
|
+
'desc':f'multiply a (price+crv) times its tax rate + (price+crv) and return the total',
|
|
467
|
+
'exec':lambda: price_plus_crv_by_tax(total=True),
|
|
468
|
+
},
|
|
449
469
|
f'{uuid1()}':{
|
|
450
470
|
'cmds':['tax add',],
|
|
451
471
|
'desc':'''AddNewTaxRate() -> None
|
|
@@ -236,7 +236,7 @@ def GetTaxRate(excludes=['txrt_id','DTOE']):
|
|
|
236
236
|
'type':str(i.type).lower()} for i in tr.__table__.columns if i.name not in excludes
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
fd=FormBuilder(data=fields)
|
|
239
|
+
fd=FormBuilder(data=fields,passThruText="GetTaxRate Search -> ")
|
|
240
240
|
if fd is None:
|
|
241
241
|
return
|
|
242
242
|
for k in fd:
|
|
@@ -276,6 +276,65 @@ def GetTaxRate(excludes=['txrt_id','DTOE']):
|
|
|
276
276
|
else:
|
|
277
277
|
continue
|
|
278
278
|
|
|
279
|
+
def price_by_tax(total=False):
|
|
280
|
+
fields={
|
|
281
|
+
'price':{
|
|
282
|
+
'default':0,
|
|
283
|
+
'type':'dec.dec'
|
|
284
|
+
},
|
|
285
|
+
'rate':{
|
|
286
|
+
'default':GetTaxRate(),
|
|
287
|
+
'type':'dec.dec'
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
fd=FormBuilder(data=fields,passThruText="Tax on Price ->")
|
|
291
|
+
if fd is None:
|
|
292
|
+
return
|
|
293
|
+
else:
|
|
294
|
+
price=fd['price']
|
|
295
|
+
rate=fd['rate']
|
|
296
|
+
if price is None:
|
|
297
|
+
price=0
|
|
298
|
+
if fd['rate'] is None:
|
|
299
|
+
rate=0
|
|
300
|
+
if total == False:
|
|
301
|
+
return decc(price,cf=4)*decc(rate,cf=4)
|
|
302
|
+
else:
|
|
303
|
+
return (decc(price,cf=4)*decc(rate,cf=4))+decc(price,cf=4)
|
|
304
|
+
|
|
305
|
+
def price_plus_crv_by_tax(total=False):
|
|
306
|
+
fields={
|
|
307
|
+
'price':{
|
|
308
|
+
'default':0,
|
|
309
|
+
'type':'dec.dec'
|
|
310
|
+
},
|
|
311
|
+
'crv_total_for_pkg':{
|
|
312
|
+
'default':0,
|
|
313
|
+
'type':'dec.dec',
|
|
314
|
+
},
|
|
315
|
+
'rate':{
|
|
316
|
+
'default':GetTaxRate(),
|
|
317
|
+
'type':'dec.dec'
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
fd=FormBuilder(data=fields,passThruText="Tax on (Price+CRV)")
|
|
321
|
+
if fd is None:
|
|
322
|
+
return
|
|
323
|
+
else:
|
|
324
|
+
price=fd['price']
|
|
325
|
+
rate=fd['rate']
|
|
326
|
+
crv=fd['crv_total_for_pkg']
|
|
327
|
+
if price is None:
|
|
328
|
+
price=0
|
|
329
|
+
if crv is None:
|
|
330
|
+
crv=0
|
|
331
|
+
if fd['rate'] is None:
|
|
332
|
+
rate=0
|
|
333
|
+
if total == False:
|
|
334
|
+
return (decc(price,cf=4)+decc(crv,cf=4))*decc(rate,cf=4)
|
|
335
|
+
else:
|
|
336
|
+
return (price+crv)+((decc(price,cf=4)+decc(crv,cf=4))*decc(rate,cf=4))
|
|
337
|
+
|
|
279
338
|
def DeleteTaxRate(excludes=['txrt_id','DTOE']):
|
|
280
339
|
with Session(ENGINE) as session:
|
|
281
340
|
'''DeleteTaxRate() -> None
|
|
@@ -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=KI7Jmf3MX0Zng_YUvcjVKN2siyUOhaMAHQGzpPuX8KQ,41373
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=4lz5Qu4mfHGH4JNb0e4vCCeTIA8hOE6oclaB2dCnaWg,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
|
|
@@ -402,7 +402,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
402
402
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
403
403
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
404
404
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
405
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
405
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=jfwQdkJ23RhjiDmsLNjDimZxTUIVdORDzkJJUu81DfU,165
|
|
406
406
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
407
407
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
408
408
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -412,8 +412,8 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
|
|
|
412
412
|
radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
|
|
413
413
|
radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
|
|
414
414
|
radboy/preloader/__init__.py,sha256=lrGR0JF0dkDM8N9ORGUKH_MucUFx1-PI38YsvqS-wgA,926
|
|
415
|
-
radboy/preloader/preloader.py,sha256=
|
|
416
|
-
radboy/preloader/preloader_func.py,sha256
|
|
415
|
+
radboy/preloader/preloader.py,sha256=3bq0dzo5KiZmK86DWCBZH4WmHoS01iLoUQ6BciL6BHU,14456
|
|
416
|
+
radboy/preloader/preloader_func.py,sha256=-VYHHtmqe-oYhWj4AoqXy5IFuzw5yn5zyxty2tTyw6E,12501
|
|
417
417
|
radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
418
418
|
radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
|
|
419
419
|
radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
|
|
@@ -430,7 +430,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
430
430
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
431
431
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
432
432
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
433
|
-
radboy-0.0.
|
|
434
|
-
radboy-0.0.
|
|
435
|
-
radboy-0.0.
|
|
436
|
-
radboy-0.0.
|
|
433
|
+
radboy-0.0.663.dist-info/METADATA,sha256=fYLcc0iPqP6jE2t-DPsZ-qu7dQSfW3VD62aHQePXl8k,1891
|
|
434
|
+
radboy-0.0.663.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
435
|
+
radboy-0.0.663.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
436
|
+
radboy-0.0.663.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|