radboy 0.0.712__py3-none-any.whl → 0.0.713__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/DB/Prompt.py +44 -44
- radboy/DB/__pycache__/Prompt.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.712.dist-info → radboy-0.0.713.dist-info}/METADATA +1 -1
- {radboy-0.0.712.dist-info → radboy-0.0.713.dist-info}/RECORD +8 -8
- {radboy-0.0.712.dist-info → radboy-0.0.713.dist-info}/WHEEL +0 -0
- {radboy-0.0.712.dist-info → radboy-0.0.713.dist-info}/top_level.txt +0 -0
radboy/DB/Prompt.py
CHANGED
|
@@ -196,7 +196,7 @@ def getExtras(entryId,extras):
|
|
|
196
196
|
|
|
197
197
|
def getSuperTotal(results,location_fields,colormapped):
|
|
198
198
|
with db.Session(db.ENGINE) as session:
|
|
199
|
-
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",
|
|
199
|
+
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",4,setValue=False,literal=True))
|
|
200
200
|
master_total=decc("0.00",cf=ROUNDTO)
|
|
201
201
|
master_total_crv=decc("0.00",cf=ROUNDTO)
|
|
202
202
|
master_total_tax=decc("0.00",cf=ROUNDTO)
|
|
@@ -1271,19 +1271,19 @@ class Prompt(object):
|
|
|
1271
1271
|
print(db.strip_colors(msg))
|
|
1272
1272
|
else:
|
|
1273
1273
|
msg+=f"""{Fore.light_magenta} |-|{Fore.light_green} Total = {Fore.light_sea_green}{total}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1274
|
+
{Fore.light_magenta}Price({decc(i.Price):.{getcontext().prec}f}){Fore.medium_violet_red}*{Fore.light_slate_blue}Total({total}):{decc(i.Price)*total:.{getcontext().prec}f}
|
|
1275
|
+
{Fore.grey_70}+CRV({decc(i.CRV):.{getcontext().prec}f})*Total({total}){Fore.slate_blue_1}
|
|
1276
|
+
{Fore.medium_spring_green}= {Fore.slate_blue_1}TotalCRV({crv:.{getcontext().prec}f})+TotalPrice({total*decc(i.Price):.{getcontext().prec}f})
|
|
1277
|
+
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*decc(i.Price)+crv:.{getcontext().prec}f}){Style.reset}
|
|
1278
|
+
{Fore.grey_70}+Tax({decc(i.Tax):.{getcontext().prec}f}) w/o CRV({decc(i.CRV):.{getcontext().prec}f})*Total({total}){Fore.slate_blue_1}
|
|
1279
|
+
{Fore.medium_spring_green}= {Fore.slate_blue_1}TaxNoCRVTotal({tax:.{getcontext().prec}f})+TotalPrice({total*i.Price:.{getcontext().prec}f})
|
|
1280
|
+
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*decc(i.Price)+tax:.{getcontext().prec}f}){Style.reset}
|
|
1281
|
+
{Fore.grey_70}+Tax({decc(i.Tax):.{getcontext().prec}f}) w/ CRV({decc(i.CRV):.{getcontext().prec}f})*Total({total}){Fore.slate_blue_1}
|
|
1282
|
+
{Fore.medium_spring_green}= {Fore.slate_blue_1}TaxCRVTotal({tax_crv:.{getcontext().prec}f})+TotalPrice({total*i.Price:.{getcontext().prec}f})
|
|
1283
|
+
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*decc(i.Price)+tax+crv:.{getcontext().prec}f}){Style.reset}
|
|
1284
|
+
{Fore.medium_violet_red}PercentOfTotal({super_total:.{getcontext().prec}f}%) of FinalTotal({getSuperTotal(results,location_fields,colormapped)['final total']})
|
|
1285
|
+
{Fore.orange_red_1}TaxRate({taxRate:.{getcontext().prec}f})={decc(taxRate*100):.{getcontext().prec}f}%{Style.reset}
|
|
1286
|
+
{'*'*os.get_terminal_size().columns}{Style.reset}"""
|
|
1287
1287
|
if bldlse:
|
|
1288
1288
|
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
1289
1289
|
if not justCount and not justTotal:
|
|
@@ -1326,29 +1326,29 @@ class Prompt(object):
|
|
|
1326
1326
|
if not reRunRequired:
|
|
1327
1327
|
if justCount:
|
|
1328
1328
|
msg=f"""
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1329
|
+
{Fore.spring_green_3a}'Total Items'={Style.bold}{Fore.light_cyan}{TotalItems}{Style.reset}
|
|
1330
|
+
{Fore.spring_green_3a}Total 'CRV Items' (each crv adds an xtra 1)={Fore.light_cyan}{TotalCRVItems}{Style.reset}
|
|
1331
|
+
{Fore.spring_green_3a}Total 'CRV Items QTY Purchased' (each crv adds an xtra for total qty)={Fore.light_cyan}{TTLQtyCrvItem}{Style.reset}
|
|
1332
1332
|
|
|
1333
|
-
|
|
1334
|
-
|
|
1333
|
+
{Fore.light_sea_green}'Total Items' + 'CRV Items' ={Fore.light_magenta}{TotalCRVItems+TotalItems}{Style.reset}
|
|
1334
|
+
{Fore.light_sea_green}'Total Items' + 'CRV Items QTY Purchased' ={Fore.light_magenta}{TTLQtyCrvItem+TotalItems}{Style.reset}
|
|
1335
1335
|
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1336
|
+
{Fore.light_blue}'Total Lines'={Style.bold}{Fore.grey_70}{TotalLines}{Style.reset}
|
|
1337
|
+
{Fore.light_blue}'Total Lines' + 'CRV Items'={Style.bold}{Fore.grey_70}{TotalLines+TotalCRVItems}{Style.reset}
|
|
1338
|
+
{Fore.light_blue}'Total Lines' + 'CRV Items QTY Purchased'={Style.bold}{Fore.grey_70}{TotalLines+TotalCRVItems}{Style.reset}
|
|
1339
1339
|
{Style.reset}"""
|
|
1340
1340
|
if not simple:
|
|
1341
1341
|
print(msg)
|
|
1342
1342
|
return
|
|
1343
1343
|
if justTotal:
|
|
1344
1344
|
msg=f"""{Fore.light_green}Total Product Value
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1345
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{master_total}{Style.reset}
|
|
1346
|
+
{Fore.light_green}Total Product Value w/CRV({master_total_crv})
|
|
1347
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{master_total_crv+master_total}{Style.reset}
|
|
1348
|
+
{Fore.light_green}Total Product Value Taxed({master_total_tax}) w/o CRV({master_total_crv})
|
|
1349
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{master_total_tax+master_total}{Style.reset}
|
|
1350
|
+
{Fore.light_green}Total Product Value Taxed({master_total_tax}) w/ CRV({master_total_crv})
|
|
1351
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{actual}{Style.reset}
|
|
1352
1352
|
"""
|
|
1353
1353
|
if not simple:
|
|
1354
1354
|
print(msg)
|
|
@@ -1356,13 +1356,13 @@ class Prompt(object):
|
|
|
1356
1356
|
|
|
1357
1357
|
|
|
1358
1358
|
msg=f"""{Fore.light_green}Total Product Value
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1359
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{master_total}{Style.reset}
|
|
1360
|
+
{Fore.light_green}Total Product Value w/CRV({master_total_crv})
|
|
1361
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{master_total_crv+master_total}{Style.reset}
|
|
1362
|
+
{Fore.light_green}Total Product Value Taxed({master_total_tax}) w/o CRV({master_total_crv})
|
|
1363
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{master_total_tax+master_total}{Style.reset}
|
|
1364
|
+
{Fore.light_green}Total Product Value Taxed({master_total_tax}) w/ CRV({master_total_crv})
|
|
1365
|
+
{Fore.orange_red_1}= {Style.bold}{Fore.slate_blue_1}{actual}{Style.reset}
|
|
1366
1366
|
"""
|
|
1367
1367
|
if page:
|
|
1368
1368
|
reviewRecieptLines=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Review Reciept Lines[y/N]",helpText="review line details for reciept to double check values",data="boolean")
|
|
@@ -1375,16 +1375,16 @@ class Prompt(object):
|
|
|
1375
1375
|
pass
|
|
1376
1376
|
else:
|
|
1377
1377
|
msg+=f"""
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1378
|
+
{Fore.spring_green_3a}'Total Items'={Style.bold}{Fore.light_cyan}{TotalItems}{Style.reset}
|
|
1379
|
+
{Fore.spring_green_3a}Total 'CRV Items' (each crv adds an xtra 1)={Fore.light_cyan}{TotalCRVItems}{Style.reset}
|
|
1380
|
+
{Fore.spring_green_3a}Total 'CRV Items QTY Purchased' (each crv adds an xtra for total qty)={Fore.light_cyan}{TTLQtyCrvItem}{Style.reset}
|
|
1381
1381
|
|
|
1382
|
-
|
|
1383
|
-
|
|
1382
|
+
{Fore.light_sea_green}'Total Items' + 'CRV Items' ={Fore.light_magenta}{TotalCRVItems+TotalItems}{Style.reset}
|
|
1383
|
+
{Fore.light_sea_green}'Total Items' + 'CRV Items QTY Purchased' ={Fore.light_magenta}{TTLQtyCrvItem+TotalItems}{Style.reset}
|
|
1384
1384
|
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1385
|
+
{Fore.light_blue}'Total Lines'={Style.bold}{Fore.grey_70}{TotalLines}{Style.reset}
|
|
1386
|
+
{Fore.light_blue}'Total Lines' + 'CRV Items'={Style.bold}{Fore.grey_70}{TotalLines+TotalCRVItems}{Style.reset}
|
|
1387
|
+
{Fore.light_blue}'Total Lines' + 'CRV Items QTY Purchased'={Style.bold}{Fore.grey_70}{TotalLines+TotalCRVItems}{Style.reset}
|
|
1388
1388
|
{Style.reset}"""
|
|
1389
1389
|
else:
|
|
1390
1390
|
msg=f"{Fore.orange_red_1}You need to re-run lsbld to recalculate properly!{Style.reset}"
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.713'
|
|
Binary file
|
|
@@ -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=9CyUNXPQTGFWyCEdYEqpWVwMS57bLD3d9exo35JWAaA,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
|
|
@@ -88,7 +88,7 @@ radboy/DB/OrderedAndRxd.py,sha256=PZ_Rbm0H3DFhHuN1SZEnd1RhEnKOU_L0X0MHXwYN3-s,23
|
|
|
88
88
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
89
89
|
radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
|
|
90
90
|
radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
91
|
-
radboy/DB/Prompt.py,sha256=
|
|
91
|
+
radboy/DB/Prompt.py,sha256=gsenew2dCRujrd85qYYrO4NbXkl8euzDX1uQi5a_LLA,184485
|
|
92
92
|
radboy/DB/RandomStringUtil.py,sha256=eZCpR907WStgfbk4Evcghjv9hOkUDXH-iMXIq0-kXq8,24386
|
|
93
93
|
radboy/DB/ResetTools.py,sha256=RbI-Ua7UlsN0S9qLqtEkTWvzyTZ6R-hHR3CW4NHlUPE,6660
|
|
94
94
|
radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,4013
|
|
@@ -117,7 +117,7 @@ radboy/DB/__pycache__/FormBuilder.cpython-312.pyc,sha256=p1o-5SMRL8OXP_XQ5liUpf-
|
|
|
117
117
|
radboy/DB/__pycache__/PrintLogging.cpython-312.pyc,sha256=pIAFqTi6OiQQORSc-oMH1zAbsdH7sY1TifxrN_QOvnU,148
|
|
118
118
|
radboy/DB/__pycache__/Prompt.cpython-311.pyc,sha256=P2uPRpeqfLFtxieZ0JHBG3X_HZzWUCsFSLb_fpRqky0,6407
|
|
119
119
|
radboy/DB/__pycache__/Prompt.cpython-312.pyc,sha256=6CcQ1gE2hcz3cKPjo4f6d7xNM2PTDnl8NzQG0Pme5BE,142886
|
|
120
|
-
radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=
|
|
120
|
+
radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=LbqRqno1PcabI2TJEbeEsGR10613PTPnHarrdjlPEto,263265
|
|
121
121
|
radboy/DB/__pycache__/RandomStringUtil.cpython-312.pyc,sha256=TrbEY89MuLmNlvoo5d8vOE6Dyshh5_EMlTZvk8MDVN4,48597
|
|
122
122
|
radboy/DB/__pycache__/RandomStringUtil.cpython-313.pyc,sha256=MCcgVwV2Y-9rAY2FVaJZCKcou3HDX70EZudoiCigT0o,49217
|
|
123
123
|
radboy/DB/__pycache__/ResetTools.cpython-311.pyc,sha256=4Vyc57iAAF0yRPjjglnVKovnTn8OoFIi6Zok3Wpj_YM,9292
|
|
@@ -406,7 +406,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
406
406
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
407
407
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
408
408
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
409
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
409
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=kO2KmVU3-joi_6igAc2KOZKom7LJQQ9SmeC8SsL5t2Q,165
|
|
410
410
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
411
411
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
412
412
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -434,7 +434,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
434
434
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
435
435
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
436
436
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
437
|
-
radboy-0.0.
|
|
438
|
-
radboy-0.0.
|
|
439
|
-
radboy-0.0.
|
|
440
|
-
radboy-0.0.
|
|
437
|
+
radboy-0.0.713.dist-info/METADATA,sha256=tY-XDEdAyG4-7dUwWpB7EfkSDoXJWQlLIa43uTReEPU,1891
|
|
438
|
+
radboy-0.0.713.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
439
|
+
radboy-0.0.713.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
440
|
+
radboy-0.0.713.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|