radboy 0.0.802__py3-none-any.whl → 0.0.804__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 CHANGED
@@ -1846,7 +1846,7 @@ Distress - ls Distress
1846
1846
  else:
1847
1847
  print(f"{Fore.light_red}{Style.bold}No such Barcode|Code with InList==True:{scanned}{Style.reset}\nLet's Try a Search[*]!")
1848
1848
  #search_auto_insert
1849
- idF=self.SearchAuto(InList=True,skipReturn=False)
1849
+ idF=self.SearchAuto(InList=True,skipReturn=False,use_search=use_search)
1850
1850
  if idF:
1851
1851
  result=session.query(Entry).filter(Entry.EntryId==idF).first()
1852
1852
  if result:
@@ -1924,7 +1924,9 @@ Distress - ls Distress
1924
1924
  print(f"{numColor}{num}{Style.reset} -> {color1}{result.Name}{Style.reset}|{color2}{result.rebar()}|{result.ALT_Barcode}{Style.reset}|{color3}{result.cfmt(result.Code)}{Style.reset}|{color4}{getattr(result,fieldname)}{Style.reset}|{eidColor}{getattr(result,'EntryId')}{Style.reset}")
1925
1925
  print(f"{m}\n{hr}")
1926
1926
 
1927
- def SearchAuto(self,InList=None,skipReturn=False):
1927
+ def SearchAuto(self,InList=None,skipReturn=False,use_search=True):
1928
+ if not use_search:
1929
+ return
1928
1930
  state=db.detectGetOrSet('list maker lookup order',False,setValue=False,literal=False)
1929
1931
  while True:
1930
1932
  try:
@@ -3112,11 +3114,12 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
3112
3114
  use_casecount=detectGetOrSet("list maker use casecount default",False,setValue=False,literal=False)
3113
3115
  use_price=detectGetOrSet("list maker use price default",True,setValue=False,literal=False)
3114
3116
  use_name=detectGetOrSet("list maker use name default",True,setValue=False,literal=False)
3115
- use_notes=detectGetOrSet("list maker use notes default",True,setValue=False,literal=False)
3117
+ use_notes=detectGetOrSet("list maker use notes default",False,setValue=False,literal=False)
3116
3118
  default_quantity_action=detectGetOrSet("list maker default qty",1,setValue=False,literal=False)
3117
3119
  barcode_might_be_number=detectGetOrSet("list maker might be a number default",False,setValue=False,literal=False)
3118
3120
  new_image=detectGetOrSet("list maker new item new image default",False,setValue=False,literal=False)
3119
3121
  ask_taxes=detectGetOrSet("list maker new item taxes default",False,setValue=False,literal=False)
3122
+ use_search=detectGetOrSet("list maker new item search default",False,setValue=False,literal=False)
3120
3123
 
3121
3124
  auto_text=f" [a,auto] use current settings and set defaults for any unset settings from system storage."
3122
3125
  m=f'{Fore.orange_red_1}INIT({ready}){Fore.light_yellow} -> '
@@ -3148,6 +3151,20 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
3148
3151
  else:
3149
3152
  use_code=True
3150
3153
 
3154
+ if not auto:
3155
+ ready+=1
3156
+ m=f'{Fore.orange_red_1}INIT({ready}){Fore.light_yellow} -> '
3157
+ #extras that are not always necessary
3158
+ use_search=Prompt.__init2__(None,func=lambda text,data:FormBuilderMkText(text=text,data=data,passThru=["auto","a"],PassThru=True),ptext=f"{m}ask to search for {Fore.cyan}Entry{Fore.light_yellow} For New Items? [y/N({Fore.orange_red_1}d=default{Fore.light_yellow})]",helpText=f"a boolean value from either of (0,f,n,no,false,False) or (1,t,true,True,yes,y) or formula that equates to a True or a False; {auto_text}",data="boolean")
3159
+ if use_search in [None,]:
3160
+ return
3161
+ elif use_search in ['a','auto']:
3162
+ auto=True
3163
+ elif use_search in ['d',False,]:
3164
+ use_search=False
3165
+ else:
3166
+ use_search=True
3167
+
3151
3168
  if not auto:
3152
3169
  ready+=1
3153
3170
  m=f'{Fore.orange_red_1}INIT({ready}){Fore.light_yellow} -> '
@@ -3997,7 +4014,7 @@ Location Fields:
3997
4014
  print(self.entrySepEnd.replace('#REPLACE#',f'{code}@{fieldname}'))
3998
4015
  else:
3999
4016
  if only_select_qty:
4000
- replacement=self.SearchAuto()
4017
+ replacement=self.SearchAuto(use_search=use_search)
4001
4018
  else:
4002
4019
  replacement=None
4003
4020
 
@@ -4098,7 +4115,7 @@ Location Fields:
4098
4115
 
4099
4116
  else:
4100
4117
  if only_select_qty:
4101
- replacement=self.SearchAuto()
4118
+ replacement=self.SearchAuto(use_search=use_search)
4102
4119
  if self.next_barcode():
4103
4120
  continue
4104
4121
  else:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.802'
1
+ VERSION='0.0.804'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.802
3
+ Version: 0.0.804
4
4
  Summary: A Retail Calculator for Android/Linux
5
5
  Author: Carl Joseph Hirner III
6
6
  Author-email: Carl Hirner III <k.j.hirner.wisdom@gmail.com>
@@ -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=8H6lvQedCbaNVos8TI1Wf_Ndi1UmwOVe5E6jhdMCzGk,17
8
+ radboy/__init__.py,sha256=0HJcNwPUN695SxSFk8TMqlhBbyE1n2FRsanLCIq56Tw,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
@@ -356,7 +356,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
356
356
  radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
357
357
  radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
358
358
  radboy/TasksMode/SetEntryNEU.py,sha256=mkV9zAZe0lfpu_3coMuIILEzh6PgCNi7g9lJ4yDUpYM,20596
359
- radboy/TasksMode/Tasks.py,sha256=8AKq3CESvk4rfa95PQ2xBo8mxrwZi6weH-zJYK6-JmI,376314
359
+ radboy/TasksMode/Tasks.py,sha256=bKINtfQfMp8SqIe8zhgqVG8ZtqB-IAGw0zFDq4my6Go,377417
360
360
  radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
361
361
  radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
362
362
  radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
@@ -365,7 +365,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
365
365
  radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
366
366
  radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
367
367
  radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
368
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=LujrUylwj_l8pSvxjDxh9zNgJO3FP4uI97pX0xxuMLA,450930
368
+ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=R3G5CSokMjE9zcpPe0PPKAAIc8HH7Cpx53BvRTwjf2M,451997
369
369
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
370
370
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
371
371
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
@@ -412,7 +412,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
412
412
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
413
413
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
414
414
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
415
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=D_yBlDqyo1xSR8bnKuaYdHIU_5m-rzI0Fib6x8951ys,165
415
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=bFup5sr-K2_0yGslk_Wa144z_IocvNg3FNuXWU2qfc8,165
416
416
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
417
417
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
418
418
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -440,7 +440,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
440
440
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
441
441
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
442
442
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
443
- radboy-0.0.802.dist-info/METADATA,sha256=ol-6dNjT5DsmqEJoxIj1TtQk80PlxOdBv3iHhfbEFmc,1920
444
- radboy-0.0.802.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
- radboy-0.0.802.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
- radboy-0.0.802.dist-info/RECORD,,
443
+ radboy-0.0.804.dist-info/METADATA,sha256=ZiFhZ2t8h8ASiI_OqLsi7NLRTTGB77byYIKWLQXU_94,1920
444
+ radboy-0.0.804.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
+ radboy-0.0.804.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
+ radboy-0.0.804.dist-info/RECORD,,