radboy 0.0.503__py3-none-any.whl → 0.0.505__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/CookBook/CookBook.py +6 -3
- radboy/DB/Prompt.py +73 -0
- radboy/DB/__pycache__/Prompt.cpython-313.pyc +0 -0
- radboy/TasksMode/SetEntryNEU.py +3 -1
- radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.503.dist-info → radboy-0.0.505.dist-info}/METADATA +1 -1
- {radboy-0.0.503.dist-info → radboy-0.0.505.dist-info}/RECORD +11 -11
- {radboy-0.0.503.dist-info → radboy-0.0.505.dist-info}/WHEEL +0 -0
- {radboy-0.0.503.dist-info → radboy-0.0.505.dist-info}/top_level.txt +0 -0
radboy/CookBook/CookBook.py
CHANGED
|
@@ -2,11 +2,13 @@ from . import *
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class CookBookUi:
|
|
5
|
-
def list_uids_names(self):
|
|
5
|
+
def list_uids_names(self,assistMsg=''):
|
|
6
|
+
if assistMsg != '':
|
|
7
|
+
assistMsg+="\n"
|
|
6
8
|
while True:
|
|
7
9
|
try:
|
|
8
10
|
with Session(ENGINE) as session:
|
|
9
|
-
stext=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Name or UID?[b=skip]",helpText="b|back skips",data="string")
|
|
11
|
+
stext=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"{Fore.orange_red_1}{assistMsg}{Fore.light_yellow}Name or UID?[b=skip]",helpText="b|back skips",data="string")
|
|
10
12
|
if stext is None:
|
|
11
13
|
return None,None
|
|
12
14
|
if stext in ['d',]:
|
|
@@ -95,7 +97,8 @@ class CookBookUi:
|
|
|
95
97
|
#edit everything found by searchtext using recipe_uid as the final selection parameter
|
|
96
98
|
def create_new_rcp(self):
|
|
97
99
|
with Session(ENGINE) as session:
|
|
98
|
-
|
|
100
|
+
assistMsg=f"search for existing recipe to add to..."
|
|
101
|
+
ruid,rname=self.list_uids_names(assistMsg=assistMsg)
|
|
99
102
|
uid=uuid1()
|
|
100
103
|
uid=str(uid)
|
|
101
104
|
excludes=['cbid','DTOE','recipe_uid','Instructions','recipe_name']
|
radboy/DB/Prompt.py
CHANGED
|
@@ -884,7 +884,64 @@ class Prompt(object):
|
|
|
884
884
|
esblb- bldls(bldlse=True,sbld=True,minus=True)
|
|
885
885
|
'''
|
|
886
886
|
def bldls(bldlse=False,sbld=False,minus=False):
|
|
887
|
+
def cse(code):
|
|
888
|
+
with Session(db.ENGINE) as session:
|
|
889
|
+
query=session.query(db.Entry).filter(db.Entry.InList==True,or_(db.Entry.Code.icontains(code),db.Entry.Barcode.icontains(code),db.Entry.Name.icontains(code)))
|
|
890
|
+
results=query.all()
|
|
891
|
+
ct=len(results)
|
|
892
|
+
if ct < 1:
|
|
893
|
+
print("No Results to Clear!")
|
|
894
|
+
return
|
|
895
|
+
helpText=[]
|
|
896
|
+
for num,i in enumerate(results):
|
|
897
|
+
msg=f"{Fore.cyan}{num}/{Fore.light_yellow}{num+1} of {Fore.light_red}{ct} -> {Fore.orange_red_1}{i.seeShort()}{Style.reset}"
|
|
898
|
+
helpText.append(msg)
|
|
899
|
+
helpText='\n'.join(helpText)
|
|
900
|
+
print(helpText)
|
|
901
|
+
selected=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Which index(es):",helpText=helpText,data="list")
|
|
902
|
+
try:
|
|
903
|
+
if selected in [None,'d',[]]:
|
|
904
|
+
return
|
|
905
|
+
for i in selected:
|
|
906
|
+
try:
|
|
907
|
+
index=int(i)
|
|
908
|
+
obj=results[index]
|
|
909
|
+
update={
|
|
910
|
+
'InList':False,
|
|
911
|
+
'ListQty':0,
|
|
912
|
+
'Shelf':0,
|
|
913
|
+
'Note':'',
|
|
914
|
+
'BackRoom':0,
|
|
915
|
+
'Distress':0,
|
|
916
|
+
'Display_1':0,
|
|
917
|
+
'Display_2':0,
|
|
918
|
+
'Display_3':0,
|
|
919
|
+
'Display_4':0,
|
|
920
|
+
'Display_5':0,
|
|
921
|
+
'Display_6':0,
|
|
922
|
+
'Stock_Total':0,
|
|
923
|
+
'CaseID_BR':'',
|
|
924
|
+
'CaseID_LD':'',
|
|
925
|
+
'CaseID_6W':'',
|
|
926
|
+
'SBX_WTR_DSPLY':0,
|
|
927
|
+
'SBX_CHP_DSPLY':0,
|
|
928
|
+
'SBX_WTR_KLR':0,
|
|
929
|
+
'FLRL_CHP_DSPLY':0,
|
|
930
|
+
'FLRL_WTR_DSPLY':0,
|
|
931
|
+
'WD_DSPLY':0,
|
|
932
|
+
'CHKSTND_SPLY':0,
|
|
933
|
+
}
|
|
934
|
+
for i in update:
|
|
935
|
+
setattr(obj,i,update[i])
|
|
936
|
+
session.commit()
|
|
937
|
+
except Exception as ee:
|
|
938
|
+
print(ee)
|
|
939
|
+
except Exception as e:
|
|
940
|
+
print(e)
|
|
887
941
|
try:
|
|
942
|
+
page=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Page Results?",helpText="wait for user input before displaying next item in list;yes or no",data="boolean")
|
|
943
|
+
if page in [None,'d',False]:
|
|
944
|
+
page=False
|
|
888
945
|
extras=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Show Extras?",helpText="extra data attached to each entry yes or no",data="boolean")
|
|
889
946
|
if extras in [None,'d',False]:
|
|
890
947
|
extras=False
|
|
@@ -1059,6 +1116,22 @@ class Prompt(object):
|
|
|
1059
1116
|
if bldlse:
|
|
1060
1117
|
db.logInput(msg,user=False,filter_colors=True,maxed_hfl=False,ofile=Prompt.bld_file)
|
|
1061
1118
|
print(msg)
|
|
1119
|
+
if page:
|
|
1120
|
+
nxt=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"{Fore.orange_red_1}You MUST re-run cmd if using ed/ee{Fore.light_yellow}\nSee next item in list [Enter],stop paging [sp], backout to previous prompt[b],edit item [ee],clear entry [ce]?",helpText=f"{Fore.orange_red_1}You MUST re-run cmd if using ed/ee{Fore.light_yellow}\nSee next item in list [Enter],stop paging [sp], backout to previous prompt[b],edit item [ee],clear entry [ce]?",data="string")
|
|
1121
|
+
if nxt is None:
|
|
1122
|
+
return
|
|
1123
|
+
elif nxt in ['d',]:
|
|
1124
|
+
continue
|
|
1125
|
+
elif nxt in ['sp',]:
|
|
1126
|
+
page=False
|
|
1127
|
+
continue
|
|
1128
|
+
elif nxt in ['ee',]:
|
|
1129
|
+
TM.Tasks.TasksMode(parent=self,engine=db.ENGINE,init_only=True).NewEntryMenu(code=i.Barcode)
|
|
1130
|
+
continue
|
|
1131
|
+
elif nxt in ['ce']:
|
|
1132
|
+
cse(i.Barcode)
|
|
1133
|
+
continue
|
|
1134
|
+
|
|
1062
1135
|
master_total=Decimal(str(master_total)).quantize(Decimal("0.00"))
|
|
1063
1136
|
master_total_crv=Decimal(str(master_total_crv)).quantize(Decimal("0.00"))
|
|
1064
1137
|
master_total_tax=Decimal(str(master_total_tax)).quantize(Decimal("0.00"))
|
|
Binary file
|
radboy/TasksMode/SetEntryNEU.py
CHANGED
|
@@ -239,7 +239,9 @@ class NEUSetter:
|
|
|
239
239
|
'LoadCount',
|
|
240
240
|
'PalletCount',
|
|
241
241
|
'ShelfCount',
|
|
242
|
-
'CaseCount',
|
|
242
|
+
'CaseCount',
|
|
243
|
+
]
|
|
244
|
+
fields.extend(LOCATION_FIELDS)
|
|
243
245
|
fct=len(fields)
|
|
244
246
|
for num,f in enumerate(fields):
|
|
245
247
|
msg=f'{Fore.light_green}{num}/{Fore.light_yellow}{num+1} of {Fore.light_red}{fct} -> {Fore.turquoise_4}{f}{Style.reset}'
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.505'
|
|
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=7AMBWqatxUnEmmXaAiHvpo0K6T_Rlk_xkhmLJp-uGQg,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
|
|
@@ -75,7 +75,7 @@ radboy/ConvertCode/__pycache__/__init__.cpython-311.pyc,sha256=1-K1vfRZxAs9MoOyy
|
|
|
75
75
|
radboy/ConvertCode/__pycache__/__init__.cpython-312.pyc,sha256=77LSCMdrPg91lbsloPumUo1SpAt5A8l1WPgTxGIvwTs,274
|
|
76
76
|
radboy/ConvertCode/__pycache__/__init__.cpython-313.pyc,sha256=4F9h0V0Z5sQHdZQGEsnfCSLMQK4lUD5CzJwU4Elv-EU,153
|
|
77
77
|
radboy/ConvertCode/__pycache__/codep.cpython-311.pyc,sha256=-qJqPEjGOP1-x6Xw6W4Msfuu2iwVffN_-DerH18Is2o,1086
|
|
78
|
-
radboy/CookBook/CookBook.py,sha256=
|
|
78
|
+
radboy/CookBook/CookBook.py,sha256=udDoeFxrSBdCwhrsWRN3gKW23tVI6hl5pH8p2adc99A,18403
|
|
79
79
|
radboy/CookBook/__init__.py,sha256=svTiqqFxHZeqYCRorLx6qLxL3oI1pil4fxomm-kkQ88,927
|
|
80
80
|
radboy/DB/CoinCombo.py,sha256=NJfTmx3XYgS41zkAyyO2W6de1Mj3rWsCWqU4ikHfvJI,13604
|
|
81
81
|
radboy/DB/DatePicker.py,sha256=6eNjmryFWPpzrRYmI418UwSGin3XpJlL52h8cauanbY,18004
|
|
@@ -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=iMoZg-A7IIdhLm604eDnRW7mj8GAURS4Gi8FwJfHs-8,148542
|
|
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=r7ELE0BAkDNJN1AX2TpHmaf9NFuFBXhVJczQNPnWDTY,225246
|
|
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
|
|
@@ -341,14 +341,14 @@ radboy/SystemSettings/__pycache__/SystemSettings.cpython-313.pyc,sha256=ABCS9brT
|
|
|
341
341
|
radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSAE8ytO-tJlNuKnEzAWPi1fzEIoGesI,277
|
|
342
342
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
343
343
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
344
|
-
radboy/TasksMode/SetEntryNEU.py,sha256=
|
|
344
|
+
radboy/TasksMode/SetEntryNEU.py,sha256=Gu0Z677tjpc7-9AQtLbIr7yzPx6ZJXGK33lOIgU0IRM,17432
|
|
345
345
|
radboy/TasksMode/Tasks.py,sha256=ztKZN0o6BzeierjtNTGo56tjPRg0NT2NJY64d0Kk68I,321837
|
|
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
|
|
349
349
|
radboy/TasksMode/__pycache__/ReFormula.cpython-313.pyc,sha256=BfNrg6vlQn5f2asq3gT7JVYC0sOLmYqQyuBPTGJXPNk,3901
|
|
350
350
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6SvZZ4jUfWJulvDbKue4HGFTIeteOU,17671
|
|
351
|
-
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=
|
|
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
354
|
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=B1em7xf4IWvdOw8d3s3rFMgwma-xl6K2utFemM6cj_w,395361
|
|
@@ -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=c-ecJHyh4vAXydPRHcAtywm2qcEoyw3yX0ZPjaRqz_A,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.505.dist-info/METADATA,sha256=ekyiHsOcQVK_NkzOHJV06lfDHVjsPZvPf6_8CpV-Jw8,1601
|
|
427
|
+
radboy-0.0.505.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
428
|
+
radboy-0.0.505.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
429
|
+
radboy-0.0.505.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|