mirror of
https://github.com/bcomsugi/dasaproject.git
synced 2026-01-10 05:52:38 +07:00
Compare commits
2 Commits
603b998eb9
...
583774c449
| Author | SHA1 | Date | |
|---|---|---|---|
| 583774c449 | |||
| 10a8b188bc |
8
DASAServeCaruban.bat
Normal file
8
DASAServeCaruban.bat
Normal file
@ -0,0 +1,8 @@
|
||||
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
|
||||
@ -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,8 +239,10 @@ class PurchaseOrderQuery:
|
||||
pass
|
||||
if _poline['ItemFullName']==_dict['FullName']:
|
||||
bolfind_poline_dict = True
|
||||
if _poline['UOM'].upper()==_dict['UOM'].upper():
|
||||
print(f"{_dict['FullName'] = } {_poline['ItemFullName'] = } {_poline['UOM'] = } {_dict['UOM'] = }")
|
||||
if _poline['UOM'].upper()==_dict['UOM'].upper() or _dict['UOM'].upper().startswith('ROLL_'):
|
||||
# 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]}")
|
||||
@ -304,7 +306,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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user