From 293c54ea782783970fe25a5d036ac09c61d86312 Mon Sep 17 00:00:00 2001 From: Nagy Date: Tue, 16 Jun 2020 17:29:54 +0300 Subject: [PATCH] Change type of free stock --- pkg/api/products/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/products/models.go b/pkg/api/products/models.go index 3754cf7..33711a0 100644 --- a/pkg/api/products/models.go +++ b/pkg/api/products/models.go @@ -79,7 +79,7 @@ type ( StockInfo struct { WarehouseID uint `json:"warehouseID"` - Free int `json:"free"` + Free float64 `json:"free"` OrderPending int `json:"orderPending"` ReorderPoint int `json:"reorderPoint"` RestockLevel int `json:"restockLevel"`