radboy 0.0.516__py3-none-any.whl → 0.0.517__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/TasksMode/Tasks.py CHANGED
@@ -306,6 +306,15 @@ def pricing(self):
306
306
  {Fore.grey_70}default_bottle_size=={Fore.light_yellow}{default_bottle_size},
307
307
  {Fore.light_sea_green}default_purchased_qty=={Fore.turquoise_4}{default_purchased_qty}
308
308
  {Style.reset}"""
309
+ def tax_rate_decimal():
310
+ result=None
311
+ tax_percent=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Tax Rate Percent: ",helpText="percent to convert to decimal (Percent/100=Rate)",data="dec.dec")
312
+ if tax_percent is None:
313
+ return
314
+ elif tax_percent in ['d',]:
315
+ tax_percent=default_taxrate/100
316
+ result=tax_percent/100
317
+ return result
309
318
 
310
319
  def beverage_PTCRV_base():
311
320
  result=None
@@ -546,41 +555,49 @@ def pricing(self):
546
555
 
547
556
  options={
548
557
  '0':{
549
- 'cmds':['beverage price+tax+CRV','b-ptcrv','0'],
558
+ 'cmds':['beverage price+tax+CRV','b-ptcrv',],
550
559
  'desc':f'{Fore.light_yellow}beverage Price+Tax+CRV{Fore.medium_violet_red} asking for base questions like bottle size and qty to get total cost with tax{Style.reset}',
551
560
  'exec':beverage_PTCRV_base
552
561
  },
553
562
  '1':{
554
- 'cmds':['price+tax','p+t','1'],
563
+ 'cmds':['price+tax','p+t',],
555
564
  'desc':f'{Fore.light_yellow}Price+Tax{Fore.medium_violet_red} asking questions like price and qty to get total cost with tax{Style.reset}',
556
565
  'exec':price_tax
557
566
  },
558
567
  '2':{
559
- 'cmds':['crvttl','crv total','crvtotal','crv_total','2'],
568
+ 'cmds':['crvttl','crv total','crvtotal','crv_total',],
560
569
  'desc':f'{Fore.light_yellow}total crv{Fore.medium_violet_red} asking questions like price and qty to get total crv{Style.reset}',
561
570
  'exec':crv_total
562
571
  },
563
572
  '3':{
564
- 'cmds':['tax+crv','t+c','tax crv','3'],
573
+ 'cmds':['tax+crv','t+c','tax crv',],
565
574
  'desc':f'{Fore.light_yellow}tax+crv{Fore.medium_violet_red} asking questions like price and qty to get total crv{Style.reset}',
566
575
  'exec':tax_with_crv
567
576
  },
568
577
  '4':{
569
- 'cmds':['tax','tax no crv','tax 0 crv','4'],
578
+ 'cmds':['tax','tax no crv','tax 0 crv',],
570
579
  'desc':f'{Fore.light_yellow}tax w/o crv{Fore.medium_violet_red} asking questions like price and qty to get total tax without crv{Style.reset}',
571
580
  'exec':tax_no_crv
572
581
  },
573
582
  '5':{
574
- 'cmds':['trfpt','tax_rate_from_price_and_tax','tax rate from price and tax','taxRateFromPriceAndTax','5'],
583
+ 'cmds':['trfpt','tax_rate_from_price_and_tax','tax rate from price and tax','taxRateFromPriceAndTax',],
575
584
  'desc':f'{Fore.light_yellow}tax rate{Fore.medium_violet_red} from price and tax as a decimal{Style.reset}',
576
585
  'exec':tax_rate_from_priceAndTax
577
586
  },
578
587
  '6':{
579
- 'cmds':['tax_rate_from_old_price_and_new_price','tax rate from old price and new price','taxRateFromOldPriceAndNewPrice','trfopnp','6'],
588
+ 'cmds':['tax_rate_from_old_price_and_new_price','tax rate from old price and new price','taxRateFromOldPriceAndNewPrice','trfopnp',],
580
589
  'desc':f'{Fore.light_yellow}tax rate{Fore.medium_violet_red} from old price and new price{Style.reset}',
581
590
  'exec':tax_rate_from_oldPriceAndNewPrice
582
591
  },
592
+ '7':{
593
+ 'cmds':['tax decimal','taxdecimal'],
594
+ 'desc':f'{Fore.light_yellow}tax rate decimal{Fore.medium_violet_red} from percent{Style.reset}',
595
+ 'exec':tax_rate_decimal
596
+ },
583
597
  }
598
+ for num,i in enumerate(options):
599
+ options[i]['cmds'].append(str(num))
600
+
584
601
  while True:
585
602
  helpText=[]
586
603
  for i in options:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.516'
1
+ VERSION='0.0.517'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.516
3
+ Version: 0.0.517
4
4
  Summary: A small example package
5
5
  Author: Carl Joseph Hirner III
6
6
  Author-email: Carl Hirner III <k.j.hirner.wisdom@gmail.com>
@@ -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=1sy0HLFWr9Ci0ern9WnMMGrSX8lzFq8QlSSLQInGwEo,17
8
+ radboy/__init__.py,sha256=HCgPXooq6jhI3TlxYLS0KsiUzswDcN9PUNVYhLTSf3c,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
@@ -342,7 +342,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
342
342
  radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
343
343
  radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
344
344
  radboy/TasksMode/SetEntryNEU.py,sha256=Gu0Z677tjpc7-9AQtLbIr7yzPx6ZJXGK33lOIgU0IRM,17432
345
- radboy/TasksMode/Tasks.py,sha256=VN2VXpVCkiSmegO3p4jf3VVeRZ89rX_xp1aJpiERSnk,326720
345
+ radboy/TasksMode/Tasks.py,sha256=8VqssrwZOTMu0tcs9loKiDI5M6OiTprM1thOMdkbN1c,327528
346
346
  radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
347
347
  radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
348
348
  radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
@@ -351,7 +351,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
351
351
  radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=UExwr8dN2STFEDE5t_YnQFMUX-wGv7JH10I1OyBDRtM,20212
352
352
  radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
353
353
  radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
354
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=f7ZF_Rb2dIfOcLMjkH7mP8X_4e6OqcFo8vge4yWE9Lo,399739
354
+ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=QQnbQ-Gv6RNt6h-FjVY3wqUeONlm6MHnIf2Sjxyp8n0,400546
355
355
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
356
356
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
357
357
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
@@ -398,7 +398,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
398
398
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
399
399
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
400
400
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
401
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=FgIVbv3HH4oFtOkw361laplY_HgGBfAVd8W7p0um8kw,165
401
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=YB0lB_QyS_JnCxLsd8MjZLHnnV1i8bQ0oKm_5csq9Cs,165
402
402
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
403
403
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
404
404
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -423,7 +423,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
423
423
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
424
424
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
425
425
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
426
- radboy-0.0.516.dist-info/METADATA,sha256=A0mhfIuOfY3VlsI4jEgOVh8YCsmVApN57R2RrKa06t0,1601
427
- radboy-0.0.516.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
428
- radboy-0.0.516.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
429
- radboy-0.0.516.dist-info/RECORD,,
426
+ radboy-0.0.517.dist-info/METADATA,sha256=sDFs9_DQHmes4OfBSjaZpO7of_rVyP1xOQMMR1O59-g,1601
427
+ radboy-0.0.517.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
428
+ radboy-0.0.517.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
429
+ radboy-0.0.517.dist-info/RECORD,,