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

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"), item.get("placement"),
reason, reason,
) )
if success: if "errorMessage" not in success.keys():
successCount += 1 successCount += 1
if successCount == len(items): if successCount == len(items):
response["status"] = "ok" response["status"] = "ok"
+1 -1
View File
@@ -20,7 +20,7 @@ class StocksActions:
price: float, price: float,
placement: str, placement: str,
reason: str, reason: str,
) -> bool: ) -> dict:
logger.info(f"Приход инструмента {toolkit_id} на складе {toolbox_id} ...") logger.info(f"Приход инструмента {toolkit_id} на складе {toolbox_id} ...")
newStocks = await StockHandler.add( newStocks = await StockHandler.add(
toolkit_id=toolkit_id, toolkit_id=toolkit_id,