Правка прихода
This commit is contained in:
@@ -70,7 +70,7 @@ async def fill_toolbox(reqDict=Depends(requestDict)):
|
||||
item.get("placement"),
|
||||
reason,
|
||||
)
|
||||
if success:
|
||||
if "errorMessage" not in success.keys():
|
||||
successCount += 1
|
||||
if successCount == len(items):
|
||||
response["status"] = "ok"
|
||||
|
||||
@@ -20,7 +20,7 @@ class StocksActions:
|
||||
price: float,
|
||||
placement: str,
|
||||
reason: str,
|
||||
) -> bool:
|
||||
) -> dict:
|
||||
logger.info(f"Приход инструмента {toolkit_id} на складе {toolbox_id} ...")
|
||||
newStocks = await StockHandler.add(
|
||||
toolkit_id=toolkit_id,
|
||||
|
||||
Reference in New Issue
Block a user