Changeset - 6fa39f685829
[Not reviewed]
default
0 1 0
Dennis Fink - 2 years ago 2022-02-28 19:00:33
dennis.fink@c3l.lu
Fix stock_amount not being an integer
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
stockcli/stock.py
Show inline comments
 
@@ -60,7 +60,7 @@ def get_info_by_barcode(barcode: str) ->
 
        stock_quantity_unit["name"],
 
    )
 

	
 
    stock_amount = product["stock_amount"]
 
    stock_amount = int(product["stock_amount"])
 
    grid.add_row(GreenBoldText("Overall Stock Amount:"), str(stock_amount))
 

	
 
    if stock_amount > 0:
0 comments (0 inline, 0 general)