Правка прихода
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user