radboy 0.0.611__py3-none-any.whl → 0.0.613__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/OrderedAndRxd.py +4 -1
- radboy/TasksMode/SetEntryNEU.py +12 -2
- radboy/TasksMode/Tasks.py +1 -1
- 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.611.dist-info → radboy-0.0.613.dist-info}/METADATA +1 -1
- {radboy-0.0.611.dist-info → radboy-0.0.613.dist-info}/RECORD +11 -11
- {radboy-0.0.611.dist-info → radboy-0.0.613.dist-info}/WHEEL +0 -0
- {radboy-0.0.611.dist-info → radboy-0.0.613.dist-info}/top_level.txt +0 -0
radboy/DB/OrderedAndRxd.py
CHANGED
|
@@ -229,6 +229,9 @@ class OrderAndRxdUi():
|
|
|
229
229
|
pass
|
|
230
230
|
else:
|
|
231
231
|
filte.append(getattr(OrderedAndRecieved,k)==src_dict[k])
|
|
232
|
+
#uncomment these to troubleshoot
|
|
233
|
+
#print('x3',and_(*filte))
|
|
234
|
+
#print('x4')
|
|
232
235
|
return and_(*filte)
|
|
233
236
|
|
|
234
237
|
def OrderedAndRecieved_as(self,_exlcudes=[],as_=None,item=None):
|
|
@@ -316,7 +319,7 @@ class OrderAndRxdUi():
|
|
|
316
319
|
|
|
317
320
|
if terms is not None:
|
|
318
321
|
with Session(ENGINE) as session:
|
|
319
|
-
query=session.query(OrderedAndRecieved).filter(
|
|
322
|
+
query=session.query(OrderedAndRecieved).filter(terms)
|
|
320
323
|
query=orderQuery(query,OrderedAndRecieved.dtoe)
|
|
321
324
|
results=query.all()
|
|
322
325
|
ct=len(results)
|
radboy/TasksMode/SetEntryNEU.py
CHANGED
|
@@ -355,6 +355,7 @@ class NEUSetter:
|
|
|
355
355
|
tax_adjusted=False
|
|
356
356
|
for fname in fnames:
|
|
357
357
|
column=getattr(Entry,fname)
|
|
358
|
+
oldprice=getattr(selected,'Price')
|
|
358
359
|
newValue=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"[{Fore.medium_violet_red}old{Fore.light_yellow}] {Fore.light_magenta}{fname} = {Fore.light_red}{getattr(selected,fname)}{Fore.orange_red_1} to: {Style.reset}",helpText="new value",data=str(column.type))
|
|
359
360
|
if newValue in [None,'d']:
|
|
360
361
|
continue
|
|
@@ -367,16 +368,25 @@ class NEUSetter:
|
|
|
367
368
|
if fname.lower() == 'price':
|
|
368
369
|
session.commit()
|
|
369
370
|
session.refresh(selected)
|
|
370
|
-
adjust_tax=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Adjust Tax using Price({newValue}),CRV({selected.CRV}), and the Tax Rate",helpText="yes/no/boolean",data="boolean")
|
|
371
|
+
adjust_tax=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Adjust Tax using Price({newValue}),CRV({selected.CRV}), and the Tax Rate.",helpText="yes/no/boolean",data="boolean")
|
|
371
372
|
if adjust_tax in ['d',True]:
|
|
372
373
|
tax_adjusted=True
|
|
373
374
|
ROUNDTO=int(db.detectGetOrSet("lsbld ROUNDTO default",3,setValue=False,literal=True))
|
|
374
375
|
default_taxrate=round(float(db.detectGetOrSet("Tax Rate",0.0925,setValue=False,literal=True)),4)
|
|
375
|
-
|
|
376
|
+
|
|
377
|
+
try:
|
|
378
|
+
last_taxrate=float(decc(selected.Tax/(oldprice+selected.CRV),cf=4))
|
|
379
|
+
except Exception as e:
|
|
380
|
+
print(e)
|
|
381
|
+
last_taxrate=0
|
|
382
|
+
|
|
383
|
+
tax_rate=Prompt.__init2__(None,func=lambda text,data:FormBuilderMkText(text,data,passThru=['l','L','last'],PassThru=True),ptext=f"Tax(default={default_taxrate},{Fore.light_green}{['l','L','last']}{Fore.dark_goldenrod}last_tax_rate={Fore.light_red}{last_taxrate}{Fore.light_yellow}): ",helpText=f"What is the tax rate, default is {default_taxrate}; just hit enter.['l','L','last'] will use last taxrate {last_taxrate}.",data="float")
|
|
376
384
|
if tax_rate in [None,]:
|
|
377
385
|
return selected.Tax,selected.CRV
|
|
378
386
|
elif tax_rate in ['d',]:
|
|
379
387
|
tax_rate=default_taxrate
|
|
388
|
+
elif tax_rate in ['l','L','last']:
|
|
389
|
+
tax_rate=last_taxrate
|
|
380
390
|
|
|
381
391
|
tax=round(selected.Price+selected.CRV,ROUNDTO)*tax_rate
|
|
382
392
|
tax=round(tax,ROUNDTO)
|
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -3625,7 +3625,7 @@ result in setting the value to 'Default Qty'+'Location Field'{Style.reset}
|
|
|
3625
3625
|
return tax,crv
|
|
3626
3626
|
elif crv in ['d',]:
|
|
3627
3627
|
crv=0
|
|
3628
|
-
tax_rate=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Tax({default_taxrate}
|
|
3628
|
+
tax_rate=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Tax({default_taxrate}: ",helpText=f"What is the tax rate, default is {default_taxrate}.",data="float")
|
|
3629
3629
|
if tax_rate is None:
|
|
3630
3630
|
return tax,crv
|
|
3631
3631
|
elif tax_rate in ['d',]:
|
|
Binary file
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.613'
|
|
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=h8M7_cIU6MZ9hUaQMnFKaH-R1xkPYjsUtXVjrCIUKCk,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/DatePicker.py,sha256=B75mDtXQrkHRCpoU9TJsaBVvkK37ykMaJyaiqGOo4dM,18334
|
|
|
83
83
|
radboy/DB/DisplayItemDb.py,sha256=uVvrNyFyBuKvrw-BEPXKYvfa-QWyFN5ahESi2l6vUUA,52046
|
|
84
84
|
radboy/DB/EstimatedPayCalendarWorkSheet.txt,sha256=GOjRSmGxFoNTdAnpPe2kGv7CkXDrh0Mee01HslamGbo,17173
|
|
85
85
|
radboy/DB/ExerciseTracker.py,sha256=OS9i8jGIZPj-6m1bB0-eKNHQ6vf2iv_AYPEc0s4bkBM,27809
|
|
86
|
-
radboy/DB/OrderedAndRxd.py,sha256=
|
|
86
|
+
radboy/DB/OrderedAndRxd.py,sha256=AHXlrRb7BuLLMI35VCfCr9NARBgQZXyAkMobClUJ0Ns,16686
|
|
87
87
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
88
88
|
radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
|
|
89
89
|
radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -344,17 +344,17 @@ radboy/SystemSettings/__pycache__/SystemSettings.cpython-313.pyc,sha256=ddGbkpJe
|
|
|
344
344
|
radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSAE8ytO-tJlNuKnEzAWPi1fzEIoGesI,277
|
|
345
345
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
346
346
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
347
|
-
radboy/TasksMode/SetEntryNEU.py,sha256=
|
|
348
|
-
radboy/TasksMode/Tasks.py,sha256=
|
|
347
|
+
radboy/TasksMode/SetEntryNEU.py,sha256=mkV9zAZe0lfpu_3coMuIILEzh6PgCNi7g9lJ4yDUpYM,20596
|
|
348
|
+
radboy/TasksMode/Tasks.py,sha256=d2vmzH1oOy5-2-bxlJpDNEan9klH1bl8xLv9I8wp42I,343180
|
|
349
349
|
radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
350
350
|
radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
|
|
351
351
|
radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
|
|
352
352
|
radboy/TasksMode/__pycache__/ReFormula.cpython-313.pyc,sha256=BfNrg6vlQn5f2asq3gT7JVYC0sOLmYqQyuBPTGJXPNk,3901
|
|
353
353
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6SvZZ4jUfWJulvDbKue4HGFTIeteOU,17671
|
|
354
|
-
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=
|
|
354
|
+
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
|
|
355
355
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
356
356
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
357
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
357
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=BWDbB8ind3Xe-FO4WlY6uoLnzSL6mXnzxDxJFeDBkRM,417894
|
|
358
358
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
359
359
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
360
360
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -401,7 +401,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
401
401
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
402
402
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
403
403
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
404
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
404
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=3BAhNSWwsIUkmwcvWidjgKJ2FlWacl4bhQMuKR8H5GA,165
|
|
405
405
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
406
406
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
407
407
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -429,7 +429,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
429
429
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
430
430
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
431
431
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
432
|
-
radboy-0.0.
|
|
433
|
-
radboy-0.0.
|
|
434
|
-
radboy-0.0.
|
|
435
|
-
radboy-0.0.
|
|
432
|
+
radboy-0.0.613.dist-info/METADATA,sha256=2iPGI586b_OI14LwLGSccTzACZzAks7MFrwZCwMecic,1662
|
|
433
|
+
radboy-0.0.613.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
434
|
+
radboy-0.0.613.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
435
|
+
radboy-0.0.613.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|