Compare commits

..

No commits in common. "583774c4499502054a1fa923d48f0d72eec68247" and "603b998eb9443ef7efe275c550bed2b9f3121911" have entirely different histories.

2 changed files with 3 additions and 13 deletions

View File

@ -1,8 +0,0 @@
cd "C:\Sources\dasaproject\"
echo already cd
cmd /k "cd /d C:\Sources\dasaproject\env\Scripts\ & activate & cd /d C:\Sources\dasaproject\ & uvicorn main:app --host 0.0.0.0 --port 9997
echo workon env
echo pause
echo get to env
echo uvicorn main:app --reload
echo start app

View File

@ -229,7 +229,7 @@ class PurchaseOrderQuery:
_bolfoundrefnum=False
_bol_dictisadded=False
Error_msg = None
# print(('adddnqtytopurchaseorderlist'))
for poidx, _po in enumerate(self.PurchaseOrderList):
if _po['RefNumber']==_dict['RefNum']:
_bolfoundrefnum=True
@ -239,10 +239,8 @@ class PurchaseOrderQuery:
pass
if _poline['ItemFullName']==_dict['FullName']:
bolfind_poline_dict = True
print(f"{_dict['FullName'] = } {_poline['ItemFullName'] = } {_poline['UOM'] = } {_dict['UOM'] = }")
if _poline['UOM'].upper()==_dict['UOM'].upper() or _dict['UOM'].upper().startswith('ROLL_'):
if _poline['UOM'].upper()==_dict['UOM'].upper():
# first do UOM in _dict convert treatment
print(f"{_dict['FullName'] = } {_poline['UOM'] = } {_dict['UOM'] = }")
QuantityIn_dict = _dict['Quantity']
if _dict['UOM'].upper().startswith('ROLL_'):
print(f"addDNQtyToPurchaseOrderList->DNqty:{_dict['Quantity']}, Roll_:{_dict['UOM'].split('_')[1]}")
@ -306,7 +304,7 @@ class PurchaseOrderQuery:
else:
_dflist = self.dfDN.to_dict('records')
# print(self.dfDN)
print(f'_dflist1:{_dflist}')
# print(f'_dflist1:{_dflist}')
# print("")
# print(f'self.PurchaseOrderList: {self.PurchaseOrderList}')
for idx, xdf in enumerate(_dflist):