radboy 0.0.838__py3-none-any.whl → 0.0.840__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 +11 -4
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/preloader/preloader.py +10 -0
- radboy/preloader/preloader_func.py +118 -0
- {radboy-0.0.838.dist-info → radboy-0.0.840.dist-info}/METADATA +1 -1
- {radboy-0.0.838.dist-info → radboy-0.0.840.dist-info}/RECORD +10 -10
- {radboy-0.0.838.dist-info → radboy-0.0.840.dist-info}/WHEEL +0 -0
- {radboy-0.0.838.dist-info → radboy-0.0.840.dist-info}/top_level.txt +0 -0
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -53,6 +53,7 @@ from decimal import Decimal as DEC
|
|
|
53
53
|
from radboy.DB.lsToday import *
|
|
54
54
|
from radboy.DB.GEMINI import *
|
|
55
55
|
from radboy.Unified.BACKUP import *
|
|
56
|
+
import scipy
|
|
56
57
|
|
|
57
58
|
def today():
|
|
58
59
|
dt=datetime.now()
|
|
@@ -491,17 +492,20 @@ class Formulae:
|
|
|
491
492
|
return None
|
|
492
493
|
else:
|
|
493
494
|
returnTypes=["float","Decimal","string","string"]
|
|
494
|
-
returnActor=[lambda x:
|
|
495
|
+
returnActor=[lambda x:float(x),lambda x:Decimal(x),lambda x: f"{x:.4f}",lambda x:str(x)]
|
|
495
496
|
ct=len(returnTypes)
|
|
496
497
|
returnType=None
|
|
497
498
|
htext=[]
|
|
498
499
|
strOnly=False
|
|
500
|
+
tmp=[]
|
|
499
501
|
for num,i in enumerate(returnTypes):
|
|
500
502
|
try:
|
|
501
503
|
htext.append(std_colorize(f"{i} - {returnActor[num](result)} ",num,ct))
|
|
502
504
|
except Exception as e:
|
|
503
505
|
strOnly=True
|
|
504
|
-
print(e)
|
|
506
|
+
print(e,result,type(result))
|
|
507
|
+
if len(htext) < 2:
|
|
508
|
+
return str(result)
|
|
505
509
|
htext='\n'.join(htext)
|
|
506
510
|
while returnType not in range(0,ct+1):
|
|
507
511
|
print(htext)
|
|
@@ -1096,7 +1100,7 @@ SALES TAX ON APPLICABLE TANGIBLE ITEMS = (PRICE + CRV) * TTL TAX RATE
|
|
|
1096
1100
|
return None
|
|
1097
1101
|
else:
|
|
1098
1102
|
returnTypes=["float","Decimal","string","string"]
|
|
1099
|
-
returnActor=[lambda x:
|
|
1103
|
+
returnActor=[lambda x:float(x),lambda x:Decimal(x).quantize(Decimal("0.0000")),lambda x: f"{x:.4f}",lambda x:str(x)]
|
|
1100
1104
|
ct=len(returnTypes)
|
|
1101
1105
|
returnType=None
|
|
1102
1106
|
htext=[]
|
|
@@ -1106,7 +1110,10 @@ SALES TAX ON APPLICABLE TANGIBLE ITEMS = (PRICE + CRV) * TTL TAX RATE
|
|
|
1106
1110
|
htext.append(std_colorize(f"{i} - {returnActor[num](result)} ",num,ct))
|
|
1107
1111
|
except Exception as e:
|
|
1108
1112
|
strOnly=True
|
|
1109
|
-
print(e)
|
|
1113
|
+
print(e,result,type(result))
|
|
1114
|
+
if len(htext) < 2:
|
|
1115
|
+
return str(result)
|
|
1116
|
+
|
|
1110
1117
|
htext='\n'.join(htext)
|
|
1111
1118
|
while returnType not in range(0,ct+1):
|
|
1112
1119
|
print(htext)
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.840'
|
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -72,6 +72,16 @@ preloader={
|
|
|
72
72
|
'desc':f'open sonofman bible',
|
|
73
73
|
'exec':bible_try,
|
|
74
74
|
},
|
|
75
|
+
f'{uuid1()}':{
|
|
76
|
+
'cmds':['sales floor location','sls flr lctn'],
|
|
77
|
+
'desc':f'generate a sales floor location string',
|
|
78
|
+
'exec':SalesFloorLocationString,
|
|
79
|
+
},
|
|
80
|
+
f'{uuid1()}':{
|
|
81
|
+
'cmds':['backroom location','br lctn'],
|
|
82
|
+
'desc':f'generate a backroom location string',
|
|
83
|
+
'exec':BackroomLocation,
|
|
84
|
+
},
|
|
75
85
|
f'{uuid1()}':{
|
|
76
86
|
'cmds':['generic item or service text template','txt gios '],
|
|
77
87
|
'desc':f'find the cost to run a device per day',
|
|
@@ -1975,3 +1975,121 @@ def bible_try():
|
|
|
1975
1975
|
except Exception as e:
|
|
1976
1976
|
print(e)
|
|
1977
1977
|
|
|
1978
|
+
DELCHAR=db.detectGetOrSet("DELCHAR preloader func","|",setValue=False,literal=True)
|
|
1979
|
+
if not DELCHAR:
|
|
1980
|
+
DELCHAR='|'
|
|
1981
|
+
|
|
1982
|
+
def SalesFloorLocationString():
|
|
1983
|
+
fields=OrderedDict({
|
|
1984
|
+
|
|
1985
|
+
'Aisle[s]':{
|
|
1986
|
+
'default':'',
|
|
1987
|
+
'type':'string',
|
|
1988
|
+
},
|
|
1989
|
+
'Bay[s]/AisleDepth':{
|
|
1990
|
+
'default':'',
|
|
1991
|
+
'type':'string',
|
|
1992
|
+
},
|
|
1993
|
+
'Shel[f,ves]':{
|
|
1994
|
+
'default':'',
|
|
1995
|
+
'type':'string',
|
|
1996
|
+
}
|
|
1997
|
+
})
|
|
1998
|
+
passThruText=f"""
|
|
1999
|
+
{Fore.orange_red_1}Valid Aisle[s]:{Fore.grey_85}
|
|
2000
|
+
this is the aisle on which the product resides
|
|
2001
|
+
if the product belongs on an end cap use the endcap here as
|
|
2002
|
+
well. endcaps are numbered 0+=1 from left to right of the store
|
|
2003
|
+
front. the same is true for aisle. if the product resides on an
|
|
2004
|
+
end cap, append FEC (0FEC) to signify front end cap 0, or 0REC for
|
|
2005
|
+
rear end cap 0.
|
|
2006
|
+
0 -> on aisle 0
|
|
2007
|
+
0,1 -> on aisle 0 and 1
|
|
2008
|
+
0-2 -> from aisle 0 to aisle 2
|
|
2009
|
+
|
|
2010
|
+
encaps on the front side of the aisle will have an FEC Appended to its number
|
|
2011
|
+
The same is true for rear of the aisle(REC). if a encap range is used, the character
|
|
2012
|
+
will identify its side of the store. if two encaps on opposite sides of the store
|
|
2013
|
+
are specified, then use 2 separate ranges; one for front and one for the rear.
|
|
2014
|
+
0FEC -> on front endcap 0
|
|
2015
|
+
0FEC,1REC -> on front endcap 0 and on rear endcap 1.
|
|
2016
|
+
0-2FEC -> from front endcap 0 to front endcap 2
|
|
2017
|
+
0-2REC -> from rear endcap 0 to rear endcap 2
|
|
2018
|
+
0-2FEC,0-2REC -> from front endcap 0 to front endcap 2 && from rear endcap 0 to rear endcap 2
|
|
2019
|
+
|
|
2020
|
+
{Fore.orange_red_1}Valid 'Bay[s]/AisleDepth':{Fore.grey_85}
|
|
2021
|
+
This is How many shelf bays deep from the front of the store
|
|
2022
|
+
to the back, where 0 is the first bay from the endcap at the
|
|
2023
|
+
front of the store and increments upwards to the rear end cap.
|
|
2024
|
+
Bays on the right side of the aisle will have an R Appended to its number
|
|
2025
|
+
The same is true for left of the aisle. if a bay range is used, the character
|
|
2026
|
+
will identify its side of the aisle. if two bays on opposite sides of the aisle
|
|
2027
|
+
are specified, then use 2 separate ranges; one for left and one for right.
|
|
2028
|
+
0 -> on bay 0
|
|
2029
|
+
0,1 -> on bay 0 and 1
|
|
2030
|
+
0-2R -> from bay 0 to bay 2 on the right side of the aisle
|
|
2031
|
+
0-2L -> from bay 0 to bay 2 on the left side of the aisle
|
|
2032
|
+
0-2R,0-2L -> from bay 0 to bay 2 on the right side of the aisle && from bay 0 to bay 2 on the left side of the aisle.
|
|
2033
|
+
{Fore.orange_red_1}Valid Shel[f,ves]:{Fore.grey_85}
|
|
2034
|
+
this is the height where the product is on the shelf
|
|
2035
|
+
shelves are number 0 to their highest from bottom to top
|
|
2036
|
+
where the very bottom shelf is 0, and the next following shelf upwards is
|
|
2037
|
+
1, and so on.
|
|
2038
|
+
0 -> on shelf 0
|
|
2039
|
+
0,1 -> on shelf 0 and 1
|
|
2040
|
+
0-2 -> from shelf 0 to shelf 2
|
|
2041
|
+
{Fore.light_green}Aisle or EndCap{Fore.light_red}/{Fore.light_yellow}Depth or Bay in Aisle{Fore.light_red}/{Fore.light_steel_blue}Shelf or Location Number(s) Where Item Resides [optional]{Style.reset}"""
|
|
2042
|
+
fb=FormBuilder(data=fields,passThruText=passThruText)
|
|
2043
|
+
if fb is None:
|
|
2044
|
+
return
|
|
2045
|
+
if fb['Shel[f,ves]'] not in ['',]:
|
|
2046
|
+
fb['Shel[f,ves]']=f"{DELCHAR}{fb['Shel[f,ves]']}"
|
|
2047
|
+
locationString=f"{fb['Aisle[s]']}{DELCHAR}{fb['Bay[s]/AisleDepth']}{fb['Shel[f,ves]']}"
|
|
2048
|
+
return locationString
|
|
2049
|
+
|
|
2050
|
+
def BackroomLocation():
|
|
2051
|
+
fields=OrderedDict({
|
|
2052
|
+
'moduleType':{
|
|
2053
|
+
'default':'',
|
|
2054
|
+
'type':'string',
|
|
2055
|
+
},
|
|
2056
|
+
'moduleNumberRange':{
|
|
2057
|
+
'default':'',
|
|
2058
|
+
'type':'string',
|
|
2059
|
+
},
|
|
2060
|
+
'caseID':{
|
|
2061
|
+
'default':'',
|
|
2062
|
+
'type':'string',
|
|
2063
|
+
},
|
|
2064
|
+
|
|
2065
|
+
})
|
|
2066
|
+
passThruText=f'''
|
|
2067
|
+
{Fore.orange_red_1}Valid ModuleTypes:{Fore.grey_85}
|
|
2068
|
+
this what to look on for where the product is stored
|
|
2069
|
+
s or S -> For Pallet/Platform [General]/Skid
|
|
2070
|
+
u or U -> For U-Boat/Size Wheeler
|
|
2071
|
+
rc or rC or Rc or RC -> for RotaCart
|
|
2072
|
+
sc or sC or Sc or SC -> Shopping Cart
|
|
2073
|
+
|
|
2074
|
+
{Fore.orange_red_1}Valid ModuleNumberRange:{Fore.grey_85}
|
|
2075
|
+
This which of the what's contains said item.
|
|
2076
|
+
0 -> on which 0
|
|
2077
|
+
0,1 -> on which 0 and which 1
|
|
2078
|
+
0-2 -> from which 0 to which 2 on the left side of the aisle
|
|
2079
|
+
{Fore.orange_red_1}Valid caseID:{Fore.grey_85}
|
|
2080
|
+
This is the case where the item is stored in which is the which found on the what.
|
|
2081
|
+
anything that you want as long as it is unique to the module in which it is stored.
|
|
2082
|
+
try using the following cmds for something on the fly.
|
|
2083
|
+
nanoid - nanoid
|
|
2084
|
+
crbc - checked random barcode
|
|
2085
|
+
dsur - generate a datestring
|
|
2086
|
+
urid - generate reciept id with a log
|
|
2087
|
+
cruid - checked uuid
|
|
2088
|
+
'''
|
|
2089
|
+
fb=FormBuilder(data=fields,passThruText=passThruText)
|
|
2090
|
+
if fb is None:
|
|
2091
|
+
return
|
|
2092
|
+
if fb['caseID'] not in ['',]:
|
|
2093
|
+
fb['caseID']=f"{DELCHAR}{fb['caseID']}"
|
|
2094
|
+
locationString=f"{fb['moduleType']}{DELCHAR}{fb['moduleNumberRange']}{' '.join(db.stre(fb['caseID'])/3)}"
|
|
2095
|
+
return locationString
|
|
@@ -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=h30zoTqt-XLt_afDPlxMxBiKKwmKi3N-yAuldNCqXUo,41476
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=QjHEe9_jp7L1P6pUMKkWFl1Uqo8CgyD90LI7Dlhcz8c,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
|
|
@@ -357,7 +357,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
|
|
|
357
357
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
358
358
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
359
359
|
radboy/TasksMode/SetEntryNEU.py,sha256=d-Aya8yxdVmcMNDcp0UBMQQm4IAbJv6vhYKeh9r0Kmg,20694
|
|
360
|
-
radboy/TasksMode/Tasks.py,sha256=
|
|
360
|
+
radboy/TasksMode/Tasks.py,sha256=59MAqOZUNkpldSplPGQ-1FPqeFD6SiubiJfxzxMxS70,381426
|
|
361
361
|
radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
362
362
|
radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
|
|
363
363
|
radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
|
|
@@ -366,7 +366,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
|
|
|
366
366
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=aXhwkDb2JQXRyJpxYBScWk6Wfsze9uM7vdx9lo-u57Q,24632
|
|
367
367
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
368
368
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
369
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
369
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=N4zVVf3-S1PRuBPwpx9g0CAq0Ii6aSq9Lec7Km0GRIg,454999
|
|
370
370
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
371
371
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
372
372
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -414,7 +414,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
414
414
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
415
415
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
416
416
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
417
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
417
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=PtsXcHf_OMWkVfGDFz0Po8EOE1I6iZ-gLgcGr0rCzXo,165
|
|
418
418
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
419
419
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
420
420
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -424,8 +424,8 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
|
|
|
424
424
|
radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
|
|
425
425
|
radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
|
|
426
426
|
radboy/preloader/__init__.py,sha256=lrGR0JF0dkDM8N9ORGUKH_MucUFx1-PI38YsvqS-wgA,926
|
|
427
|
-
radboy/preloader/preloader.py,sha256=
|
|
428
|
-
radboy/preloader/preloader_func.py,sha256=
|
|
427
|
+
radboy/preloader/preloader.py,sha256=wEiImcxM1Rrzt-SwMwNxQxG7WCgzl26M-Bi76K4kyL4,9705
|
|
428
|
+
radboy/preloader/preloader_func.py,sha256=94PiQrP5aZEm9KsrhWbdEnN170Q1ZFMuxsgZqEfVf7E,74719
|
|
429
429
|
radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
430
430
|
radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
|
|
431
431
|
radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
|
|
@@ -442,7 +442,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
442
442
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
443
443
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
444
444
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
445
|
-
radboy-0.0.
|
|
446
|
-
radboy-0.0.
|
|
447
|
-
radboy-0.0.
|
|
448
|
-
radboy-0.0.
|
|
445
|
+
radboy-0.0.840.dist-info/METADATA,sha256=xMyvlGfbWlbEg_rq5ammKLHaAzSucUCc7LWehjrn6Mg,1920
|
|
446
|
+
radboy-0.0.840.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
447
|
+
radboy-0.0.840.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
448
|
+
radboy-0.0.840.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|