Правка прихода

This commit is contained in:
2025-12-16 09:41:01 +03:00
parent 601859f465
commit d7bfdb69a6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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,