radboy 0.0.355__py3-none-any.whl → 0.0.356__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 +218 -168
- 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.355.dist-info → radboy-0.0.356.dist-info}/METADATA +1 -1
- {radboy-0.0.355.dist-info → radboy-0.0.356.dist-info}/RECORD +8 -8
- {radboy-0.0.355.dist-info → radboy-0.0.356.dist-info}/WHEEL +0 -0
- {radboy-0.0.355.dist-info → radboy-0.0.356.dist-info}/top_level.txt +0 -0
radboy/DB/Prompt.py
CHANGED
|
@@ -2027,7 +2027,14 @@ last month = today-30d
|
|
|
2027
2027
|
for f in location_fields:
|
|
2028
2028
|
tmp.append(or_(getattr(db.Entry,f)>=0.0001))
|
|
2029
2029
|
results_query=results_query.filter(or_(*tmp))
|
|
2030
|
-
|
|
2030
|
+
|
|
2031
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2032
|
+
if not isinstance(LookUpState,bool):
|
|
2033
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2034
|
+
if LookUpState == True:
|
|
2035
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2036
|
+
else:
|
|
2037
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2031
2038
|
ct=len(results)
|
|
2032
2039
|
if ct < 1:
|
|
2033
2040
|
print(f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}")
|
|
@@ -2037,7 +2044,7 @@ last month = today-30d
|
|
|
2037
2044
|
master_total_crv=0
|
|
2038
2045
|
master_total_tax=0
|
|
2039
2046
|
master_total_tax_crv=0
|
|
2040
|
-
|
|
2047
|
+
|
|
2041
2048
|
for num,i in enumerate(results):
|
|
2042
2049
|
getExtras(i.EntryId,extras)
|
|
2043
2050
|
msg=f'{"*"*os.get_terminal_size().columns}\n{Fore.light_green}{num}{Fore.light_magenta}/{Fore.orange_3}{num+1} of {Fore.light_red}{ct}[{Fore.dark_slate_gray_1}EID{Fore.orange_3}]{Fore.dark_violet_1b}{i.EntryId}{Style.reset} |-| {Fore.light_yellow}{i.Name}|{Fore.light_salmon_1}[{Fore.light_red}BCD]{i.rebar()}{Fore.medium_violet_red}|[{Fore.light_red}CD{Fore.medium_violet_red}]{i.cfmt(i.Code)} {Style.reset}|-| '
|
|
@@ -2141,7 +2148,13 @@ last month = today-30d
|
|
|
2141
2148
|
for f in location_fields:
|
|
2142
2149
|
tmp.append(or_(getattr(db.Entry,f)>=0.0001))
|
|
2143
2150
|
results_query=results_query.filter(or_(*tmp))
|
|
2144
|
-
|
|
2151
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2152
|
+
if not isinstance(LookUpState,bool):
|
|
2153
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2154
|
+
if LookUpState == True:
|
|
2155
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2156
|
+
else:
|
|
2157
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2145
2158
|
ct=len(results)
|
|
2146
2159
|
if ct < 1:
|
|
2147
2160
|
msg=f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}"
|
|
@@ -2273,7 +2286,13 @@ last month = today-30d
|
|
|
2273
2286
|
for f in location_fields:
|
|
2274
2287
|
tmp.append(or_(getattr(db.Entry,f)>=0.0001))
|
|
2275
2288
|
results_query=results_query.filter(or_(*tmp))
|
|
2276
|
-
|
|
2289
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2290
|
+
if not isinstance(LookUpState,bool):
|
|
2291
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2292
|
+
if LookUpState == True:
|
|
2293
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2294
|
+
else:
|
|
2295
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2277
2296
|
ct=len(results)
|
|
2278
2297
|
if ct < 1:
|
|
2279
2298
|
print(f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}")
|
|
@@ -2404,7 +2423,13 @@ last month = today-30d
|
|
|
2404
2423
|
for f in location_fields:
|
|
2405
2424
|
tmp.append(or_(getattr(db.Entry,f)>=0.0001))
|
|
2406
2425
|
results_query=results_query.filter(or_(*tmp))
|
|
2407
|
-
|
|
2426
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2427
|
+
if not isinstance(LookUpState,bool):
|
|
2428
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2429
|
+
if LookUpState == True:
|
|
2430
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2431
|
+
else:
|
|
2432
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2408
2433
|
ct=len(results)
|
|
2409
2434
|
if ct < 1:
|
|
2410
2435
|
msg=f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}"
|
|
@@ -2517,7 +2542,13 @@ last month = today-30d
|
|
|
2517
2542
|
for f in location_fields:
|
|
2518
2543
|
tmp.append(or_(getattr(db.Entry,f)!=0,getattr(db.Entry,f)!=None))
|
|
2519
2544
|
results_query=results_query.filter(or_(*tmp))
|
|
2520
|
-
|
|
2545
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2546
|
+
if not isinstance(LookUpState,bool):
|
|
2547
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2548
|
+
if LookUpState == True:
|
|
2549
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2550
|
+
else:
|
|
2551
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2521
2552
|
ct=len(results)
|
|
2522
2553
|
if ct < 1:
|
|
2523
2554
|
print(f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}")
|
|
@@ -2623,7 +2654,13 @@ last month = today-30d
|
|
|
2623
2654
|
for f in location_fields:
|
|
2624
2655
|
tmp.append(or_(getattr(db.Entry,f)!=0,getattr(db.Entry,f)!=None))
|
|
2625
2656
|
results_query=results_query.filter(or_(*tmp))
|
|
2626
|
-
|
|
2657
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2658
|
+
if not isinstance(LookUpState,bool):
|
|
2659
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2660
|
+
if LookUpState == True:
|
|
2661
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2662
|
+
else:
|
|
2663
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2627
2664
|
ct=len(results)
|
|
2628
2665
|
if ct < 1:
|
|
2629
2666
|
msg=f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}"
|
|
@@ -2752,95 +2789,102 @@ last month = today-30d
|
|
|
2752
2789
|
for f in location_fields:
|
|
2753
2790
|
tmp.append(or_(getattr(db.Entry,f)!=0,getattr(db.Entry,f)!=None))
|
|
2754
2791
|
results_query=results_query.filter(or_(*tmp))
|
|
2755
|
-
|
|
2792
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2793
|
+
if not isinstance(LookUpState,bool):
|
|
2794
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2795
|
+
if LookUpState == True:
|
|
2796
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2797
|
+
else:
|
|
2798
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2756
2799
|
ct=len(results)
|
|
2757
2800
|
if ct < 1:
|
|
2758
2801
|
print(f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}")
|
|
2759
2802
|
continue
|
|
2760
|
-
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",3,setValue=False,literal=True))
|
|
2761
|
-
master_total=0
|
|
2762
|
-
master_total_crv=0
|
|
2763
|
-
master_total_tax=0
|
|
2764
|
-
master_total_tax_crv=0
|
|
2765
2803
|
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2804
|
+
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",3,setValue=False,literal=True))
|
|
2805
|
+
master_total=0
|
|
2806
|
+
master_total_crv=0
|
|
2807
|
+
master_total_tax=0
|
|
2808
|
+
master_total_tax_crv=0
|
|
2809
|
+
|
|
2810
|
+
for num,i in enumerate(results):
|
|
2811
|
+
getExtras(i.EntryId,extras)
|
|
2812
|
+
msg=f'{"*"*os.get_terminal_size().columns}\n{Fore.light_green}{num}{Fore.light_magenta}/{Fore.orange_3}{num+1} of {Fore.light_red}{ct}[{Fore.dark_slate_gray_1}EID{Fore.orange_3}]{Fore.dark_violet_1b}{i.EntryId}{Style.reset} |-| {Fore.light_yellow}{i.Name}|{Fore.light_salmon_1}[{Fore.light_red}BCD]{i.rebar()}{Fore.medium_violet_red}|[{Fore.light_red}CD{Fore.medium_violet_red}]{i.cfmt(i.Code)} {Style.reset}|-| '
|
|
2813
|
+
colormapped=[
|
|
2814
|
+
Fore.deep_sky_blue_4c,
|
|
2815
|
+
Fore.spring_green_4,
|
|
2816
|
+
Fore.turquoise_4,
|
|
2817
|
+
Fore.dark_cyan,
|
|
2818
|
+
Fore.deep_sky_blue_2,
|
|
2819
|
+
Fore.spring_green_2a,
|
|
2820
|
+
Fore.medium_spring_green,
|
|
2821
|
+
Fore.steel_blue,
|
|
2822
|
+
Fore.cadet_blue_1,
|
|
2823
|
+
Fore.aquamarine_3,
|
|
2824
|
+
Fore.purple_1a,
|
|
2825
|
+
Fore.medium_purple_3a,
|
|
2826
|
+
Fore.slate_blue_1,
|
|
2827
|
+
Fore.light_slate_grey,
|
|
2828
|
+
Fore.dark_olive_green_3a,
|
|
2829
|
+
Fore.deep_pink_4c,
|
|
2830
|
+
Fore.orange_3,
|
|
2831
|
+
]
|
|
2832
|
+
total=0
|
|
2833
|
+
crv=0
|
|
2834
|
+
tax=0
|
|
2835
|
+
tax_crv=0
|
|
2836
|
+
for n2,f in enumerate(location_fields):
|
|
2837
|
+
try:
|
|
2838
|
+
if getattr(i,f) != 0:
|
|
2839
|
+
total+=getattr(i,f)
|
|
2840
|
+
except Exception as e:
|
|
2841
|
+
print(e)
|
|
2842
|
+
for n2,f in enumerate(location_fields):
|
|
2794
2843
|
if getattr(i,f) != 0:
|
|
2795
|
-
|
|
2844
|
+
msg2=f'{colormapped[n2]}{f} = {round(getattr(i,f),ROUNDTO)}{Style.reset}'
|
|
2845
|
+
if n2 < len(location_fields):
|
|
2846
|
+
msg2+=","
|
|
2847
|
+
msg+=msg2
|
|
2848
|
+
master_total+=total*round(i.Price,3)
|
|
2849
|
+
|
|
2850
|
+
crv+=(round(i.CRV,ROUNDTO)*total)
|
|
2851
|
+
tax+=(round(i.Tax,ROUNDTO)*total)
|
|
2852
|
+
if tax == 0 and crv > 0:
|
|
2853
|
+
tax_crv=(round(i.CRV,ROUNDTO)*total)
|
|
2854
|
+
else:
|
|
2855
|
+
tax_crv+=((round(i.Tax,ROUNDTO)*total)+(round(i.CRV,ROUNDTO)*total))
|
|
2856
|
+
master_total_tax+=tax
|
|
2857
|
+
master_total_crv+=crv
|
|
2858
|
+
master_total_tax_crv+=tax_crv
|
|
2859
|
+
tax_crv=round(tax_crv,ROUNDTO)
|
|
2860
|
+
try:
|
|
2861
|
+
super_total=(round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)/getSuperTotal(results,location_fields,colormapped)['final total'],ROUNDTO))*100
|
|
2796
2862
|
except Exception as e:
|
|
2863
|
+
p1=round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO))
|
|
2864
|
+
p2=getSuperTotal(results,location_fields,colormapped)['final total']
|
|
2797
2865
|
print(e)
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
master_total_tax
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
p1=round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO))
|
|
2820
|
-
p2=getSuperTotal(results,location_fields,colormapped)['final total']
|
|
2821
|
-
print(e)
|
|
2822
|
-
print(p1,"p1")
|
|
2823
|
-
print(p2,"p2")
|
|
2824
|
-
super_total=0
|
|
2825
|
-
|
|
2826
|
-
msg+=f"""{Fore.light_magenta} |-|{Fore.light_green} Total = {Fore.light_sea_green}{round(total,ROUNDTO)}
|
|
2827
|
-
{Fore.light_magenta}Price({i.Price}){Fore.medium_violet_red}*{Fore.light_slate_blue}Total({round(total,ROUNDTO)}):{round(i.Price*total,ROUNDTO)}
|
|
2828
|
-
{Fore.grey_70}+CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TotalCRV({crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(total*i.Price,ROUNDTO)+crv})
|
|
2829
|
-
{Fore.grey_70}+Tax({i.Tax}) w/o CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxNoCRVTotal({tax})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax,ROUNDTO)})
|
|
2830
|
-
{Fore.grey_70}+Tax({i.Tax}) w/ CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxCRVTotal({tax_crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)})
|
|
2831
|
-
{Fore.medium_violet_red}PercentOfTotal({round(super_total,ROUNDTO)}) of Total({getSuperTotal(results,location_fields,colormapped)['final total']})
|
|
2832
|
-
{'*'*os.get_terminal_size().columns}{Style.reset}"""
|
|
2866
|
+
print(p1,"p1")
|
|
2867
|
+
print(p2,"p2")
|
|
2868
|
+
super_total=0
|
|
2869
|
+
|
|
2870
|
+
msg+=f"""{Fore.light_magenta} |-|{Fore.light_green} Total = {Fore.light_sea_green}{round(total,ROUNDTO)}
|
|
2871
|
+
{Fore.light_magenta}Price({i.Price}){Fore.medium_violet_red}*{Fore.light_slate_blue}Total({round(total,ROUNDTO)}):{round(i.Price*total,ROUNDTO)}
|
|
2872
|
+
{Fore.grey_70}+CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TotalCRV({crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(total*i.Price,ROUNDTO)+crv})
|
|
2873
|
+
{Fore.grey_70}+Tax({i.Tax}) w/o CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxNoCRVTotal({tax})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax,ROUNDTO)})
|
|
2874
|
+
{Fore.grey_70}+Tax({i.Tax}) w/ CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxCRVTotal({tax_crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)})
|
|
2875
|
+
{Fore.medium_violet_red}PercentOfTotal({round(super_total,ROUNDTO)}) of Total({getSuperTotal(results,location_fields,colormapped)['final total']})
|
|
2876
|
+
{'*'*os.get_terminal_size().columns}{Style.reset}"""
|
|
2877
|
+
print(msg)
|
|
2878
|
+
master_total=round(master_total,ROUNDTO)
|
|
2879
|
+
master_total_crv=round(master_total_crv,ROUNDTO)
|
|
2880
|
+
master_total_tax=round(master_total_tax,ROUNDTO)
|
|
2881
|
+
master_total_tax_crv=round(master_total_tax_crv,ROUNDTO)
|
|
2882
|
+
msg=f"""{Fore.light_green}Total Product Value:{Fore.slate_blue_1}{round(master_total,ROUNDTO)}
|
|
2883
|
+
{Fore.light_green}Total Product Value w/CRV({master_total_crv}):{Fore.slate_blue_1}{round(master_total_crv+master_total,ROUNDTO)}
|
|
2884
|
+
{Fore.light_green}Total Product Value Taxed w/o CRV({master_total_tax}):{Fore.slate_blue_1}{round(master_total_tax+master_total,ROUNDTO)}
|
|
2885
|
+
{Fore.light_green}Total Product Value Taxed w/ CRV({master_total_tax_crv}):{Fore.slate_blue_1}{round(master_total_tax_crv+master_total,ROUNDTO)}
|
|
2886
|
+
{Style.reset}"""
|
|
2833
2887
|
print(msg)
|
|
2834
|
-
master_total=round(master_total,ROUNDTO)
|
|
2835
|
-
master_total_crv=round(master_total_crv,ROUNDTO)
|
|
2836
|
-
master_total_tax=round(master_total_tax,ROUNDTO)
|
|
2837
|
-
master_total_tax_crv=round(master_total_tax_crv,ROUNDTO)
|
|
2838
|
-
msg=f"""{Fore.light_green}Total Product Value:{Fore.slate_blue_1}{round(master_total,ROUNDTO)}
|
|
2839
|
-
{Fore.light_green}Total Product Value w/CRV({master_total_crv}):{Fore.slate_blue_1}{round(master_total_crv+master_total,ROUNDTO)}
|
|
2840
|
-
{Fore.light_green}Total Product Value Taxed w/o CRV({master_total_tax}):{Fore.slate_blue_1}{round(master_total_tax+master_total,ROUNDTO)}
|
|
2841
|
-
{Fore.light_green}Total Product Value Taxed w/ CRV({master_total_tax_crv}):{Fore.slate_blue_1}{round(master_total_tax_crv+master_total,ROUNDTO)}
|
|
2842
|
-
{Style.reset}"""
|
|
2843
|
-
print(msg)
|
|
2844
2888
|
elif cmd.lower() in ['esbld-','export search build -','export_search_build-','exp scan build-','exp_scan_bld-']:
|
|
2845
2889
|
extras=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Show Extras?",helpText="extra data attached to each entry yes or no",data="boolean")
|
|
2846
2890
|
if extras in [None,'d',False]:
|
|
@@ -2878,98 +2922,104 @@ last month = today-30d
|
|
|
2878
2922
|
for f in location_fields:
|
|
2879
2923
|
tmp.append(or_(getattr(db.Entry,f)!=0,getattr(db.Entry,f)!=None))
|
|
2880
2924
|
results_query=results_query.filter(or_(*tmp))
|
|
2881
|
-
|
|
2925
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
|
|
2926
|
+
if not isinstance(LookUpState,bool):
|
|
2927
|
+
LookUpState=db.detectGetOrSet('list maker lookup order',False,setValue=True,literal=False)
|
|
2928
|
+
if LookUpState == True:
|
|
2929
|
+
results=results_query.order_by(db.Entry.Timestamp.asc()).all()
|
|
2930
|
+
else:
|
|
2931
|
+
results=results_query.order_by(db.Entry.Timestamp.desc()).all()
|
|
2882
2932
|
ct=len(results)
|
|
2883
2933
|
if ct < 1:
|
|
2884
2934
|
msg=f"{Fore.light_steel_blue}Nothing in {Fore.slate_blue_1}Bld{Fore.light_red}LS!{Style.reset}"
|
|
2885
2935
|
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
2886
2936
|
print(msg)
|
|
2887
2937
|
continue
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2938
|
+
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",3,setValue=False,literal=True))
|
|
2939
|
+
master_total=0
|
|
2940
|
+
master_total_crv=0
|
|
2941
|
+
master_total_tax=0
|
|
2942
|
+
master_total_tax_crv=0
|
|
2943
|
+
|
|
2944
|
+
for num,i in enumerate(results):
|
|
2945
|
+
getExtras(i.EntryId,extras)
|
|
2946
|
+
msg=f'{"*"*os.get_terminal_size().columns}\n{Fore.light_green}{num}{Fore.light_magenta}/{Fore.orange_3}{num+1} of {Fore.light_red}{ct}[{Fore.dark_slate_gray_1}EID{Fore.orange_3}]{Fore.dark_violet_1b}{i.EntryId}{Style.reset} |-| {Fore.light_yellow}{i.Name}|{Fore.light_salmon_1}[{Fore.light_red}BCD]{i.rebar()}{Fore.medium_violet_red}|[{Fore.light_red}CD{Fore.medium_violet_red}]{i.cfmt(i.Code)} {Style.reset}|-| '
|
|
2947
|
+
colormapped=[
|
|
2948
|
+
Fore.deep_sky_blue_4c,
|
|
2949
|
+
Fore.spring_green_4,
|
|
2950
|
+
Fore.turquoise_4,
|
|
2951
|
+
Fore.dark_cyan,
|
|
2952
|
+
Fore.deep_sky_blue_2,
|
|
2953
|
+
Fore.spring_green_2a,
|
|
2954
|
+
Fore.medium_spring_green,
|
|
2955
|
+
Fore.steel_blue,
|
|
2956
|
+
Fore.cadet_blue_1,
|
|
2957
|
+
Fore.aquamarine_3,
|
|
2958
|
+
Fore.purple_1a,
|
|
2959
|
+
Fore.medium_purple_3a,
|
|
2960
|
+
Fore.slate_blue_1,
|
|
2961
|
+
Fore.light_slate_grey,
|
|
2962
|
+
Fore.dark_olive_green_3a,
|
|
2963
|
+
Fore.deep_pink_4c,
|
|
2964
|
+
Fore.orange_3,
|
|
2965
|
+
]
|
|
2966
|
+
total=0
|
|
2967
|
+
crv=0
|
|
2968
|
+
tax=0
|
|
2969
|
+
tax_crv=0
|
|
2970
|
+
for n2,f in enumerate(location_fields):
|
|
2971
|
+
try:
|
|
2972
|
+
if getattr(i,f) != 0:
|
|
2973
|
+
total+=getattr(i,f)
|
|
2974
|
+
except Exception as e:
|
|
2975
|
+
print(e)
|
|
2976
|
+
for n2,f in enumerate(location_fields):
|
|
2922
2977
|
if getattr(i,f) != 0:
|
|
2923
|
-
|
|
2978
|
+
msg2=f'{colormapped[n2]}{f} = {round(getattr(i,f),ROUNDTO)}{Style.reset}'
|
|
2979
|
+
if n2 < len(location_fields):
|
|
2980
|
+
msg2+=","
|
|
2981
|
+
msg+=msg2
|
|
2982
|
+
master_total+=total*round(i.Price,ROUNDTO)
|
|
2983
|
+
|
|
2984
|
+
crv+=(round(i.CRV,ROUNDTO)*total)
|
|
2985
|
+
tax+=(round(i.Tax,ROUNDTO)*total)
|
|
2986
|
+
if tax == 0 and crv > 0:
|
|
2987
|
+
tax_crv=(round(i.CRV,ROUNDTO)*total)
|
|
2988
|
+
else:
|
|
2989
|
+
tax_crv+=((round(i.Tax,ROUNDTO)*total)+(round(i.CRV,ROUNDTO)*total))
|
|
2990
|
+
master_total_tax+=tax
|
|
2991
|
+
master_total_crv+=crv
|
|
2992
|
+
master_total_tax_crv+=tax_crv
|
|
2993
|
+
tax_crv=round(tax_crv,ROUNDTO)
|
|
2994
|
+
try:
|
|
2995
|
+
super_total=(round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)/getSuperTotal(results,location_fields,colormapped)['final total'],ROUNDTO))*100
|
|
2924
2996
|
except Exception as e:
|
|
2997
|
+
p1=round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO))
|
|
2998
|
+
p2=getSuperTotal(results,location_fields,colormapped)['final total']
|
|
2925
2999
|
print(e)
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
master_total_tax
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
p1=round(round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO))
|
|
2948
|
-
p2=getSuperTotal(results,location_fields,colormapped)['final total']
|
|
2949
|
-
print(e)
|
|
2950
|
-
print(p1,"p1")
|
|
2951
|
-
print(p2,"p2")
|
|
2952
|
-
super_total=0
|
|
2953
|
-
msg+=f"""{Fore.light_magenta} |-|{Fore.light_green} Total = {Fore.light_sea_green}{round(total,ROUNDTO)}
|
|
2954
|
-
{Fore.light_magenta}Price({i.Price}){Fore.medium_violet_red}*{Fore.light_slate_blue}Total({round(total,ROUNDTO)}):{round(i.Price*total,ROUNDTO)}
|
|
2955
|
-
{Fore.grey_70}+CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TotalCRV({crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(total*i.Price,ROUNDTO)+crv})
|
|
2956
|
-
{Fore.grey_70}+Tax({i.Tax}) w/o CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxNoCRVTotal({tax})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax,ROUNDTO)})
|
|
2957
|
-
{Fore.grey_70}+Tax({i.Tax}) w/ CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxCRVTotal({tax_crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)})
|
|
2958
|
-
{Fore.medium_violet_red}PercentOfTotal({round(super_total,ROUNDTO)}) of Total({getSuperTotal(results,location_fields,colormapped)['final total']})
|
|
2959
|
-
{'*'*os.get_terminal_size().columns}{Style.reset}"""
|
|
3000
|
+
print(p1,"p1")
|
|
3001
|
+
print(p2,"p2")
|
|
3002
|
+
super_total=0
|
|
3003
|
+
msg+=f"""{Fore.light_magenta} |-|{Fore.light_green} Total = {Fore.light_sea_green}{round(total,ROUNDTO)}
|
|
3004
|
+
{Fore.light_magenta}Price({i.Price}){Fore.medium_violet_red}*{Fore.light_slate_blue}Total({round(total,ROUNDTO)}):{round(i.Price*total,ROUNDTO)}
|
|
3005
|
+
{Fore.grey_70}+CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TotalCRV({crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(total*i.Price,ROUNDTO)+crv})
|
|
3006
|
+
{Fore.grey_70}+Tax({i.Tax}) w/o CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxNoCRVTotal({tax})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax,ROUNDTO)})
|
|
3007
|
+
{Fore.grey_70}+Tax({i.Tax}) w/ CRV({i.CRV})*Total({round(total,ROUNDTO)}){Fore.slate_blue_1}\n=TaxCRVTotal({tax_crv})+TotalPrice({round(total*i.Price,ROUNDTO)})=NetPrice({round(round(total*i.Price,ROUNDTO)+tax_crv,ROUNDTO)})
|
|
3008
|
+
{Fore.medium_violet_red}PercentOfTotal({round(super_total,ROUNDTO)}) of Total({getSuperTotal(results,location_fields,colormapped)['final total']})
|
|
3009
|
+
{'*'*os.get_terminal_size().columns}{Style.reset}"""
|
|
3010
|
+
print(msg)
|
|
3011
|
+
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
3012
|
+
master_total=round(master_total,ROUNDTO)
|
|
3013
|
+
master_total_crv=round(master_total_crv,ROUNDTO)
|
|
3014
|
+
master_total_tax=round(master_total_tax,ROUNDTO)
|
|
3015
|
+
master_total_tax_crv=round(master_total_tax_crv,ROUNDTO)
|
|
3016
|
+
msg=f"""{Fore.light_green}Total Product Value:{Fore.slate_blue_1}{round(master_total,ROUNDTO)}
|
|
3017
|
+
{Fore.light_green}Total Product Value w/CRV({master_total_crv}):{Fore.slate_blue_1}{round(master_total_crv+master_total,ROUNDTO)}
|
|
3018
|
+
{Fore.light_green}Total Product Value Taxed w/o CRV({master_total_tax}):{Fore.slate_blue_1}{round(master_total_tax+master_total,ROUNDTO)}
|
|
3019
|
+
{Fore.light_green}Total Product Value Taxed w/ CRV({master_total_tax_crv}):{Fore.slate_blue_1}{round(master_total_tax_crv+master_total,ROUNDTO)}
|
|
3020
|
+
{Style.reset}"""
|
|
2960
3021
|
print(msg)
|
|
2961
3022
|
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
2962
|
-
master_total=round(master_total,ROUNDTO)
|
|
2963
|
-
master_total_crv=round(master_total_crv,ROUNDTO)
|
|
2964
|
-
master_total_tax=round(master_total_tax,ROUNDTO)
|
|
2965
|
-
master_total_tax_crv=round(master_total_tax_crv,ROUNDTO)
|
|
2966
|
-
msg=f"""{Fore.light_green}Total Product Value:{Fore.slate_blue_1}{round(master_total,ROUNDTO)}
|
|
2967
|
-
{Fore.light_green}Total Product Value w/CRV({master_total_crv}):{Fore.slate_blue_1}{round(master_total_crv+master_total,ROUNDTO)}
|
|
2968
|
-
{Fore.light_green}Total Product Value Taxed w/o CRV({master_total_tax}):{Fore.slate_blue_1}{round(master_total_tax+master_total,ROUNDTO)}
|
|
2969
|
-
{Fore.light_green}Total Product Value Taxed w/ CRV({master_total_tax_crv}):{Fore.slate_blue_1}{round(master_total_tax_crv+master_total,ROUNDTO)}
|
|
2970
|
-
{Style.reset}"""
|
|
2971
|
-
print(msg)
|
|
2972
|
-
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
2973
3023
|
#end#
|
|
2974
3024
|
elif cmd.lower() in ['cdp','clipboard_default_paste','clipboard default paste']:
|
|
2975
3025
|
with db.Session(db.ENGINE) as session:
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.356'
|
|
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=XXy-o5Z_yOgrgHNju4iqM3h7xhRBkNIoHG1qePtBnGY,41316
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=Qb1JlkcDptfCs8V8tmn6WiII5clwiq17RqiYbV7l_Mg,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
|
|
@@ -83,7 +83,7 @@ radboy/DB/ExerciseTracker.py,sha256=CZ8jdKJiAE_QTAiJTRXi8ZOnS1NUiSvWVSKLHLpYVGk,
|
|
|
83
83
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
84
84
|
radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
|
|
85
85
|
radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
|
-
radboy/DB/Prompt.py,sha256=
|
|
86
|
+
radboy/DB/Prompt.py,sha256=6rKNKKo_H8o_epCYb-bfkyAR_1OR5qetCrjLo26j_pk,190515
|
|
87
87
|
radboy/DB/RandomStringUtil.py,sha256=eZCpR907WStgfbk4Evcghjv9hOkUDXH-iMXIq0-kXq8,24386
|
|
88
88
|
radboy/DB/ResetTools.py,sha256=RbI-Ua7UlsN0S9qLqtEkTWvzyTZ6R-hHR3CW4NHlUPE,6660
|
|
89
89
|
radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,4013
|
|
@@ -107,7 +107,7 @@ radboy/DB/__pycache__/FormBuilder.cpython-312.pyc,sha256=p1o-5SMRL8OXP_XQ5liUpf-
|
|
|
107
107
|
radboy/DB/__pycache__/PrintLogging.cpython-312.pyc,sha256=pIAFqTi6OiQQORSc-oMH1zAbsdH7sY1TifxrN_QOvnU,148
|
|
108
108
|
radboy/DB/__pycache__/Prompt.cpython-311.pyc,sha256=P2uPRpeqfLFtxieZ0JHBG3X_HZzWUCsFSLb_fpRqky0,6407
|
|
109
109
|
radboy/DB/__pycache__/Prompt.cpython-312.pyc,sha256=6CcQ1gE2hcz3cKPjo4f6d7xNM2PTDnl8NzQG0Pme5BE,142886
|
|
110
|
-
radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=
|
|
110
|
+
radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=kIsYjCN7fRiO5kCcI5zZgb-DCTdctC_miZkqe0yNZq8,275399
|
|
111
111
|
radboy/DB/__pycache__/RandomStringUtil.cpython-312.pyc,sha256=TrbEY89MuLmNlvoo5d8vOE6Dyshh5_EMlTZvk8MDVN4,48597
|
|
112
112
|
radboy/DB/__pycache__/RandomStringUtil.cpython-313.pyc,sha256=MCcgVwV2Y-9rAY2FVaJZCKcou3HDX70EZudoiCigT0o,49217
|
|
113
113
|
radboy/DB/__pycache__/ResetTools.cpython-311.pyc,sha256=4Vyc57iAAF0yRPjjglnVKovnTn8OoFIi6Zok3Wpj_YM,9292
|
|
@@ -386,7 +386,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
386
386
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
387
387
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
388
388
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
389
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
389
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=hqEkGlkWy7tm67wZcZkiUpZVBFgEBGcu9FTr00054gM,165
|
|
390
390
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
391
391
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
392
392
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -411,7 +411,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
411
411
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
412
412
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
413
413
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
414
|
-
radboy-0.0.
|
|
415
|
-
radboy-0.0.
|
|
416
|
-
radboy-0.0.
|
|
417
|
-
radboy-0.0.
|
|
414
|
+
radboy-0.0.356.dist-info/METADATA,sha256=e2SDtdug1qK3Ckd55uTRQZPeh12QuV3S_vtvrg7-Ds8,794
|
|
415
|
+
radboy-0.0.356.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
416
|
+
radboy-0.0.356.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
417
|
+
radboy-0.0.356.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|