radboy 0.0.581__py3-none-any.whl → 0.0.583__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/SetEntryNEU.py +50 -1
- radboy/TasksMode/Tasks.py +10 -0
- radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc +0 -0
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.581.dist-info → radboy-0.0.583.dist-info}/METADATA +1 -1
- {radboy-0.0.581.dist-info → radboy-0.0.583.dist-info}/RECORD +10 -10
- {radboy-0.0.581.dist-info → radboy-0.0.583.dist-info}/WHEEL +0 -0
- {radboy-0.0.581.dist-info → radboy-0.0.583.dist-info}/top_level.txt +0 -0
radboy/TasksMode/SetEntryNEU.py
CHANGED
|
@@ -207,7 +207,56 @@ class NEUSetter:
|
|
|
207
207
|
print(f"{Fore.light_sea_green}Done{Fore.light_yellow} Cleaning PairCollection's{Style.reset}")
|
|
208
208
|
|
|
209
209
|
#scan through PairCollection table and check each barcode for an entry in Entry and if not exists, prompt to create it/skip it/delete it, perform said action, and remove PairCollection with corresponding Barcode
|
|
210
|
-
|
|
210
|
+
|
|
211
|
+
def delete(self):
|
|
212
|
+
while True:
|
|
213
|
+
try:
|
|
214
|
+
if self.code in [None,]:
|
|
215
|
+
barcode=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"[DELETE] {Fore.light_green}Barcode|{Fore.turquoise_4}Code|{Fore.light_magenta}Name{Fore.light_yellow}:",helpText="what are you looking for?",data="string")
|
|
216
|
+
if barcode in ['d',None]:
|
|
217
|
+
return
|
|
218
|
+
else:
|
|
219
|
+
barcode=self.code
|
|
220
|
+
with Session(ENGINE) as session:
|
|
221
|
+
query=session.query(Entry).filter(or_(
|
|
222
|
+
Entry.Barcode==barcode,
|
|
223
|
+
Entry.Code==barcode,
|
|
224
|
+
Entry.Barcode.icontains(barcode),
|
|
225
|
+
Entry.Code.icontains(barcode),
|
|
226
|
+
Entry.Name.icontains(barcode)
|
|
227
|
+
))
|
|
228
|
+
results=query.all()
|
|
229
|
+
ct=len(results)
|
|
230
|
+
if ct == 0:
|
|
231
|
+
print("Nothing Found")
|
|
232
|
+
if self.code in [None,]:
|
|
233
|
+
continue
|
|
234
|
+
else:
|
|
235
|
+
return
|
|
236
|
+
|
|
237
|
+
for num,entry in enumerate(results):
|
|
238
|
+
msg=f'{Fore.light_green}{num}/{Fore.light_yellow}{num+1} of {Fore.light_red}{ct} -> {entry.seeShort()}'
|
|
239
|
+
print(msg)
|
|
240
|
+
whiches=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"[DELETE]which {Fore.light_green}index{Fore.light_yellow}?: ",helpText=f"{Fore.light_steel_blue}which index {Fore.light_yellow}number in light yellow{Style.reset}",data="list")
|
|
241
|
+
if whiches is None:
|
|
242
|
+
return
|
|
243
|
+
elif whiches in [[],'d']:
|
|
244
|
+
return
|
|
245
|
+
for which in whiches:
|
|
246
|
+
try:
|
|
247
|
+
index=int(which)
|
|
248
|
+
try:
|
|
249
|
+
session.delete(results[index])
|
|
250
|
+
session.commit()
|
|
251
|
+
except Exception as e:
|
|
252
|
+
print(e)
|
|
253
|
+
session.rollback()
|
|
254
|
+
except Exception as e:
|
|
255
|
+
print(e)
|
|
256
|
+
break
|
|
257
|
+
except Exception as e:
|
|
258
|
+
print(e)
|
|
259
|
+
return
|
|
211
260
|
|
|
212
261
|
def setFieldByName(self,fname):
|
|
213
262
|
fnames=[]
|
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -1788,12 +1788,15 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
|
|
|
1788
1788
|
{Fore.light_steel_blue}find_dupes|fd|clean_dups - {expo_color}find and delete duplicates{Style.reset}
|
|
1789
1789
|
{Fore.light_steel_blue}cleanpc|clean_pc -{expo_color}Clean PairCollections{Style.reset}
|
|
1790
1790
|
{Fore.light_steel_blue}cleanexp|clean_exp -{expo_color}Clean Expiry{Style.reset}
|
|
1791
|
+
{Fore.light_red}delete,remove{Fore.orange_red_1} Delete/Remove Entry(s){Style.reset}
|
|
1791
1792
|
{helpMsg2}{Style.reset}'''
|
|
1792
1793
|
while True:
|
|
1793
1794
|
try:
|
|
1794
1795
|
doWhat=Prompt.__init2__(None,func=mkTl,ptext=f"{h}Do What?",helpText=htext,data=self)
|
|
1795
1796
|
if doWhat in [None,]:
|
|
1796
1797
|
return
|
|
1798
|
+
elif doWhat.lower() in ["delete","remove"]:
|
|
1799
|
+
NEUSetter(code=code).delete()
|
|
1797
1800
|
elif doWhat.lower() in ['em','extras menu']:
|
|
1798
1801
|
EntryDataExtrasMenu(code=code)
|
|
1799
1802
|
elif doWhat.lower() in ['nfa',f"nfa","new entry from all","new_entry_from_all","nefa"]:
|
|
@@ -2565,6 +2568,12 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
|
|
|
2565
2568
|
entrySepStart=f'{Back.grey_30}{Fore.light_red}\\\\{Fore.light_green}{"*"*10}{Fore.light_yellow}|{Fore.light_steel_blue}#REPLACE#{Fore.light_magenta}|{Fore.orange_red_1}{"+"*10}{Fore.light_yellow}{Style.bold}({today()}){Fore.light_red}//{Style.reset}'
|
|
2566
2569
|
entrySepEnd=f'{Back.grey_30}{Fore.light_red}\\\\{Fore.orange_red_1}{"+"*10}{Fore.light_yellow}|{Fore.light_steel_blue}#REPLACE#{Fore.light_magenta}|{Fore.light_green}{"*"*10}{Fore.light_yellow}{Style.bold}({today()}){Fore.light_red}//{Style.reset}'
|
|
2567
2570
|
def setFieldInList(self,fieldname,load=False,repack_exec=None,barcode=None,only_select_qty=False):
|
|
2571
|
+
try:
|
|
2572
|
+
self.setFieldInList_(fieldname,load,repack_exec,barcode,only_select_qty)
|
|
2573
|
+
except Exception as e:
|
|
2574
|
+
print(e)
|
|
2575
|
+
|
|
2576
|
+
def setFieldInList_(self,fieldname,load=False,repack_exec=None,barcode=None,only_select_qty=False):
|
|
2568
2577
|
#determine if ascending or descending by
|
|
2569
2578
|
def hnf(resultx,fieldname,code):
|
|
2570
2579
|
if isinstance(resultx,Entry):
|
|
@@ -3191,6 +3200,7 @@ Location Fields:
|
|
|
3191
3200
|
{Fore.dark_goldenrod}Barcode={Fore.light_green}{BCD}|{Style.reset}{Fore.light_sea_green}ALT_Barcode={Fore.turquoise_4}{ABCD}{Style.reset}
|
|
3192
3201
|
{Style.bold}{Fore.orange_red_1}Code={Fore.spring_green_3a}{CD}{Style.reset}'''
|
|
3193
3202
|
if isinstance(result,Entry):
|
|
3203
|
+
taxRate=decc(0)
|
|
3194
3204
|
if result.Price is None:
|
|
3195
3205
|
result.Price=Decimal('0.00')
|
|
3196
3206
|
if result.Tax is None:
|
|
Binary file
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.583'
|
|
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=lxNepmJAr7XrrigSeZmlhOw_SBOIjMJIpxAjQU8x_YM,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
|
|
@@ -342,17 +342,17 @@ radboy/SystemSettings/__pycache__/SystemSettings.cpython-313.pyc,sha256=ddGbkpJe
|
|
|
342
342
|
radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSAE8ytO-tJlNuKnEzAWPi1fzEIoGesI,277
|
|
343
343
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
344
344
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
345
|
-
radboy/TasksMode/SetEntryNEU.py,sha256=
|
|
346
|
-
radboy/TasksMode/Tasks.py,sha256=
|
|
345
|
+
radboy/TasksMode/SetEntryNEU.py,sha256=i4HyPq-LNDRwYN-q_CpZDAdzipe9Dx5TWeaXRCdX79k,19818
|
|
346
|
+
radboy/TasksMode/Tasks.py,sha256=JhYqwjSjlwUWq-dCXFOXBOK8BpXgaquB97HEQ1EgXjQ,342304
|
|
347
347
|
radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
348
348
|
radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
|
|
349
349
|
radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
|
|
350
350
|
radboy/TasksMode/__pycache__/ReFormula.cpython-313.pyc,sha256=BfNrg6vlQn5f2asq3gT7JVYC0sOLmYqQyuBPTGJXPNk,3901
|
|
351
351
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6SvZZ4jUfWJulvDbKue4HGFTIeteOU,17671
|
|
352
|
-
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=
|
|
352
|
+
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=XFHp4zFZKm7bREkoR9QB1Z6AzuFxW0-yRkGaSSyRTb0,23533
|
|
353
353
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
354
354
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
355
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
355
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=VyTj3Fwsojvxmr0AODKPcugOpiabPrBgk7Z_5dSk7ZU,416365
|
|
356
356
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
357
357
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
358
358
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -399,7 +399,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
399
399
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
400
400
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
401
401
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
402
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
402
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=AWDT_-GxCl234RTq2IxPPTwf5hb17I2Fbtsp0KqlfLc,165
|
|
403
403
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
404
404
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
405
405
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -427,7 +427,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
427
427
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
428
428
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
429
429
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
430
|
-
radboy-0.0.
|
|
431
|
-
radboy-0.0.
|
|
432
|
-
radboy-0.0.
|
|
433
|
-
radboy-0.0.
|
|
430
|
+
radboy-0.0.583.dist-info/METADATA,sha256=bhMlfkLJmV2k6bCOPGHMyBTASDva75Zytz7V-u2y9Dk,1662
|
|
431
|
+
radboy-0.0.583.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
432
|
+
radboy-0.0.583.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
433
|
+
radboy-0.0.583.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|