radboy 0.0.508__py3-none-any.whl → 0.0.509__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 +36 -36
- 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.508.dist-info → radboy-0.0.509.dist-info}/METADATA +1 -1
- {radboy-0.0.508.dist-info → radboy-0.0.509.dist-info}/RECORD +8 -8
- {radboy-0.0.508.dist-info → radboy-0.0.509.dist-info}/WHEEL +0 -0
- {radboy-0.0.508.dist-info → radboy-0.0.509.dist-info}/top_level.txt +0 -0
radboy/DB/Prompt.py
CHANGED
|
@@ -993,10 +993,10 @@ class Prompt(object):
|
|
|
993
993
|
return
|
|
994
994
|
#start
|
|
995
995
|
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",3,setValue=False,literal=True))
|
|
996
|
-
master_total=Decimal("0.
|
|
996
|
+
master_total=Decimal("0.0000")
|
|
997
997
|
master_total_crv=Decimal("0.00")
|
|
998
|
-
master_total_tax=Decimal("0.
|
|
999
|
-
master_total_tax_crv=Decimal("0.
|
|
998
|
+
master_total_tax=Decimal("0.0000")
|
|
999
|
+
master_total_tax_crv=Decimal("0.0000")
|
|
1000
1000
|
reRunRequired=False
|
|
1001
1001
|
for num,i in enumerate(results):
|
|
1002
1002
|
getExtras(i.EntryId,extras)
|
|
@@ -1021,13 +1021,13 @@ class Prompt(object):
|
|
|
1021
1021
|
Fore.orange_3,
|
|
1022
1022
|
]
|
|
1023
1023
|
#print("#0")
|
|
1024
|
-
total=Decimal("0.
|
|
1025
|
-
crv=Decimal("0.
|
|
1024
|
+
total=Decimal("0.0000")
|
|
1025
|
+
crv=Decimal("0.0000")
|
|
1026
1026
|
tax=Decimal("0.0000")
|
|
1027
|
-
tax_crv=Decimal("0.
|
|
1027
|
+
tax_crv=Decimal("0.0000")
|
|
1028
1028
|
i.Tax=Decimal(i.Tax).quantize(Decimal("0.0000"))
|
|
1029
|
-
i.CRV=Decimal(i.CRV).quantize(Decimal("0.
|
|
1030
|
-
i.Price=Decimal(i.Price).quantize(Decimal("0.
|
|
1029
|
+
i.CRV=Decimal(i.CRV).quantize(Decimal("0.0000"))
|
|
1030
|
+
i.Price=Decimal(i.Price).quantize(Decimal("0.0000"))
|
|
1031
1031
|
try:
|
|
1032
1032
|
if (i.Price+i.CRV) > 0:
|
|
1033
1033
|
taxRate=Decimal(i.Tax/(i.Price+i.CRV)).quantize(Decimal("0.0000"))
|
|
@@ -1036,9 +1036,9 @@ class Prompt(object):
|
|
|
1036
1036
|
|
|
1037
1037
|
except Exception as e:
|
|
1038
1038
|
taxRate=Decimal('0.00000')
|
|
1039
|
-
i.Tax=Decimal('0.
|
|
1040
|
-
i.Price=Decimal('0.
|
|
1041
|
-
i.CRV=Decimal('0.
|
|
1039
|
+
i.Tax=Decimal('0.0000')
|
|
1040
|
+
i.Price=Decimal('0.0000')
|
|
1041
|
+
i.CRV=Decimal('0.0000')
|
|
1042
1042
|
session.commit()
|
|
1043
1043
|
session.refresh(i)
|
|
1044
1044
|
|
|
@@ -1047,12 +1047,12 @@ class Prompt(object):
|
|
|
1047
1047
|
for n2,f in enumerate(location_fields):
|
|
1048
1048
|
try:
|
|
1049
1049
|
if getattr(i,f) > 0:
|
|
1050
|
-
total+=Decimal(getattr(i,f)).quantize(Decimal("0.
|
|
1050
|
+
total+=Decimal(getattr(i,f)).quantize(Decimal("0.0000"))
|
|
1051
1051
|
except Exception as e:
|
|
1052
1052
|
print(e)
|
|
1053
1053
|
for n2,f in enumerate(location_fields):
|
|
1054
1054
|
if getattr(i,f) > 0:
|
|
1055
|
-
msg2=f'{colormapped[n2]}{f} = {Decimal(getattr(i,f)).quantize(Decimal("0.
|
|
1055
|
+
msg2=f'{colormapped[n2]}{f} = {Decimal(getattr(i,f)).quantize(Decimal("0.0000"))}{Style.reset}'
|
|
1056
1056
|
if n2 < len(location_fields):
|
|
1057
1057
|
msg2+=","
|
|
1058
1058
|
msg+=msg2
|
|
@@ -1060,19 +1060,19 @@ class Prompt(object):
|
|
|
1060
1060
|
for n2,f in enumerate(location_fields):
|
|
1061
1061
|
try:
|
|
1062
1062
|
if getattr(i,f) != 0:
|
|
1063
|
-
total+=Decimal(getattr(i,f)).quantize(Decimal("0.
|
|
1063
|
+
total+=Decimal(getattr(i,f)).quantize(Decimal("0.0000"))
|
|
1064
1064
|
except Exception as e:
|
|
1065
1065
|
print(e)
|
|
1066
1066
|
for n2,f in enumerate(location_fields):
|
|
1067
1067
|
if getattr(i,f) != 0:
|
|
1068
|
-
msg2=f'{colormapped[n2]}{f} = {Decimal(str(getattr(i,f))).quantize(Decimal("0.
|
|
1068
|
+
msg2=f'{colormapped[n2]}{f} = {Decimal(str(getattr(i,f))).quantize(Decimal("0.0000"))}{Style.reset}'
|
|
1069
1069
|
if n2 < len(location_fields):
|
|
1070
1070
|
msg2+=","
|
|
1071
1071
|
msg+=msg2
|
|
1072
|
-
master_total+=total*Decimal(i.Price).quantize(Decimal("0.
|
|
1072
|
+
master_total+=total*Decimal(i.Price).quantize(Decimal("0.0000"))
|
|
1073
1073
|
|
|
1074
|
-
crv+=(Decimal(i.CRV).quantize(Decimal("0.
|
|
1075
|
-
tax+=(Decimal(i.Tax).quantize(Decimal("0.
|
|
1074
|
+
crv+=(Decimal(i.CRV).quantize(Decimal("0.0000"))*total)
|
|
1075
|
+
tax+=(Decimal(i.Tax).quantize(Decimal("0.0000"))*total)
|
|
1076
1076
|
|
|
1077
1077
|
tax_crv=(crv+tax)
|
|
1078
1078
|
master_total_tax+=tax
|
|
@@ -1084,34 +1084,34 @@ class Prompt(object):
|
|
|
1084
1084
|
#print(Decimal(getSuperTotal(results,location_fields,colormapped)['final total']).quantize(Decimal("00.00")),"s2")
|
|
1085
1085
|
#print(tax_crv,"s3")
|
|
1086
1086
|
#super_total=(round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)/getSuperTotal(results,location_fields,colormapped)['final total'],ROUNDTO))*100
|
|
1087
|
-
if (total*Decimal(i.Price).quantize(Decimal("0.
|
|
1088
|
-
super_total=(total*Decimal(i.Price).quantize(Decimal("0.
|
|
1087
|
+
if (total*Decimal(i.Price).quantize(Decimal("0.0000"))+tax+crv) > 0:
|
|
1088
|
+
super_total=(total*Decimal(i.Price).quantize(Decimal("0.0000"))+tax+crv)/Decimal(getSuperTotal(results,location_fields,colormapped)['final total']).quantize(Decimal("00.0000"))
|
|
1089
1089
|
super_total=super_total*100
|
|
1090
1090
|
else:
|
|
1091
1091
|
super_total=0
|
|
1092
1092
|
except Exception as e:
|
|
1093
|
-
p1=total*Decimal(i.Price).quantize(Decimal("0.
|
|
1094
|
-
p2=Decimal(getSuperTotal(results,location_fields,colormapped)['final total']).quantize(Decimal("0.
|
|
1093
|
+
p1=total*Decimal(i.Price).quantize(Decimal("0.0000"))+tax_crv
|
|
1094
|
+
p2=Decimal(getSuperTotal(results,location_fields,colormapped)['final total']).quantize(Decimal("0.0000"))
|
|
1095
1095
|
print(e)
|
|
1096
1096
|
print(p1,"p1")
|
|
1097
1097
|
print(p2,"p2")
|
|
1098
1098
|
super_total=0
|
|
1099
1099
|
#print("#exegen2")
|
|
1100
|
-
super_total=Decimal(super_total).quantize(Decimal("0.
|
|
1100
|
+
super_total=Decimal(super_total).quantize(Decimal("0.0000"))
|
|
1101
1101
|
#print(super_total)
|
|
1102
1102
|
msg+=f"""{Fore.light_magenta} |-|{Fore.light_green} Total = {Fore.light_sea_green}{total}
|
|
1103
|
-
{Fore.light_magenta}Price({Decimal(i.Price).quantize(Decimal("0.
|
|
1104
|
-
{Fore.grey_70}+CRV({Decimal(i.CRV).quantize(Decimal("0.
|
|
1105
|
-
{Fore.medium_spring_green}= {Fore.slate_blue_1}TotalCRV({crv})+TotalPrice({total*Decimal(i.Price).quantize(Decimal("0.
|
|
1106
|
-
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*Decimal(i.Price).quantize(Decimal("0.
|
|
1107
|
-
{Fore.grey_70}+Tax({Decimal(i.Tax).quantize(Decimal("0.
|
|
1103
|
+
{Fore.light_magenta}Price({Decimal(i.Price).quantize(Decimal("0.0000"))}){Fore.medium_violet_red}*{Fore.light_slate_blue}Total({total}):{Decimal(i.Price).quantize(Decimal("0.0000"))*total}
|
|
1104
|
+
{Fore.grey_70}+CRV({Decimal(i.CRV).quantize(Decimal("0.0000"))})*Total({total.quantize(Decimal("0.0000"))}){Fore.slate_blue_1}
|
|
1105
|
+
{Fore.medium_spring_green}= {Fore.slate_blue_1}TotalCRV({crv})+TotalPrice({total*Decimal(i.Price).quantize(Decimal("0.0000"))})
|
|
1106
|
+
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*Decimal(i.Price).quantize(Decimal("0.0000"))+crv}){Style.reset}
|
|
1107
|
+
{Fore.grey_70}+Tax({Decimal(i.Tax).quantize(Decimal("0.0000"))}) w/o CRV({Decimal(i.CRV).quantize(Decimal("0.0000"))})*Total({total}){Fore.slate_blue_1}
|
|
1108
1108
|
{Fore.medium_spring_green}= {Fore.slate_blue_1}TaxNoCRVTotal({tax})+TotalPrice({total*i.Price})
|
|
1109
|
-
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*Decimal(i.Price).quantize(Decimal("0.
|
|
1110
|
-
{Fore.grey_70}+Tax({Decimal(i.Tax).quantize(Decimal("0.
|
|
1109
|
+
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*Decimal(i.Price).quantize(Decimal("0.0000"))+tax}){Style.reset}
|
|
1110
|
+
{Fore.grey_70}+Tax({Decimal(i.Tax).quantize(Decimal("0.0000"))}) w/ CRV({Decimal(i.CRV).quantize(Decimal("0.0000"))})*Total({total}){Fore.slate_blue_1}
|
|
1111
1111
|
{Fore.medium_spring_green}= {Fore.slate_blue_1}TaxCRVTotal({tax_crv})+TotalPrice({total*i.Price})
|
|
1112
|
-
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*Decimal(i.Price).quantize(Decimal("0.
|
|
1112
|
+
{Fore.medium_spring_green}= {Fore.green_3a}NetPrice({total*Decimal(i.Price).quantize(Decimal("0.0000"))+tax+crv}){Style.reset}
|
|
1113
1113
|
{Fore.medium_violet_red}PercentOfTotal({super_total}%) of FinalTotal({getSuperTotal(results,location_fields,colormapped)['final total']})
|
|
1114
|
-
{Fore.orange_red_1}TaxRate({taxRate})={Decimal(taxRate*100).quantize(Decimal("0.
|
|
1114
|
+
{Fore.orange_red_1}TaxRate({taxRate})={Decimal(taxRate*100).quantize(Decimal("0.0000"))}%{Style.reset}
|
|
1115
1115
|
{'*'*os.get_terminal_size().columns}{Style.reset}"""
|
|
1116
1116
|
if bldlse:
|
|
1117
1117
|
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
@@ -1134,10 +1134,10 @@ class Prompt(object):
|
|
|
1134
1134
|
cse(i.Barcode)
|
|
1135
1135
|
continue
|
|
1136
1136
|
|
|
1137
|
-
master_total=Decimal(str(master_total)).quantize(Decimal("0.
|
|
1138
|
-
master_total_crv=Decimal(str(master_total_crv)).quantize(Decimal("0.
|
|
1139
|
-
master_total_tax=Decimal(str(master_total_tax)).quantize(Decimal("0.
|
|
1140
|
-
master_total_tax_crv=Decimal(str(master_total_tax_crv)).quantize(Decimal("0.
|
|
1137
|
+
master_total=Decimal(str(master_total)).quantize(Decimal("0.0000"))
|
|
1138
|
+
master_total_crv=Decimal(str(master_total_crv)).quantize(Decimal("0.0000"))
|
|
1139
|
+
master_total_tax=Decimal(str(master_total_tax)).quantize(Decimal("0.0000"))
|
|
1140
|
+
master_total_tax_crv=Decimal(str(master_total_tax_crv)).quantize(Decimal("0.0000"))
|
|
1141
1141
|
|
|
1142
1142
|
actual=(master_total_crv+master_total)+master_total_tax
|
|
1143
1143
|
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.509'
|
|
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=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=5SFcglufx8WX4ui1Pqz-e1Gwv-liL1K2f-RmQAWBJ3Q,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
|
|
@@ -85,7 +85,7 @@ radboy/DB/ExerciseTracker.py,sha256=CZ8jdKJiAE_QTAiJTRXi8ZOnS1NUiSvWVSKLHLpYVGk,
|
|
|
85
85
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
86
86
|
radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
|
|
87
87
|
radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
|
-
radboy/DB/Prompt.py,sha256=
|
|
88
|
+
radboy/DB/Prompt.py,sha256=Q0KWXkWDH1meNEASMRzZGhdLRLYNiuE4U7W75mYeEuo,148951
|
|
89
89
|
radboy/DB/RandomStringUtil.py,sha256=eZCpR907WStgfbk4Evcghjv9hOkUDXH-iMXIq0-kXq8,24386
|
|
90
90
|
radboy/DB/ResetTools.py,sha256=RbI-Ua7UlsN0S9qLqtEkTWvzyTZ6R-hHR3CW4NHlUPE,6660
|
|
91
91
|
radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,4013
|
|
@@ -109,7 +109,7 @@ radboy/DB/__pycache__/FormBuilder.cpython-312.pyc,sha256=p1o-5SMRL8OXP_XQ5liUpf-
|
|
|
109
109
|
radboy/DB/__pycache__/PrintLogging.cpython-312.pyc,sha256=pIAFqTi6OiQQORSc-oMH1zAbsdH7sY1TifxrN_QOvnU,148
|
|
110
110
|
radboy/DB/__pycache__/Prompt.cpython-311.pyc,sha256=P2uPRpeqfLFtxieZ0JHBG3X_HZzWUCsFSLb_fpRqky0,6407
|
|
111
111
|
radboy/DB/__pycache__/Prompt.cpython-312.pyc,sha256=6CcQ1gE2hcz3cKPjo4f6d7xNM2PTDnl8NzQG0Pme5BE,142886
|
|
112
|
-
radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=
|
|
112
|
+
radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=OOjphTJL4QlfPMjT2RTN64o48ha7NE6-OU_YjJFQ5g8,225514
|
|
113
113
|
radboy/DB/__pycache__/RandomStringUtil.cpython-312.pyc,sha256=TrbEY89MuLmNlvoo5d8vOE6Dyshh5_EMlTZvk8MDVN4,48597
|
|
114
114
|
radboy/DB/__pycache__/RandomStringUtil.cpython-313.pyc,sha256=MCcgVwV2Y-9rAY2FVaJZCKcou3HDX70EZudoiCigT0o,49217
|
|
115
115
|
radboy/DB/__pycache__/ResetTools.cpython-311.pyc,sha256=4Vyc57iAAF0yRPjjglnVKovnTn8OoFIi6Zok3Wpj_YM,9292
|
|
@@ -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=
|
|
401
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=8wvywsmXQr6G-Rv4NRNgGIutOR2Aqj-g907osbWTdEM,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.
|
|
427
|
-
radboy-0.0.
|
|
428
|
-
radboy-0.0.
|
|
429
|
-
radboy-0.0.
|
|
426
|
+
radboy-0.0.509.dist-info/METADATA,sha256=m2UAppFNyzV_J7Q8p6CBekgV78DfLdfnu12ByUysDdU,1601
|
|
427
|
+
radboy-0.0.509.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
428
|
+
radboy-0.0.509.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
429
|
+
radboy-0.0.509.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|