update order status
This commit is contained in:
@@ -67,3 +67,51 @@ type InventoryAdjustmentResponse struct {
|
||||
Reason string `json:"reason"`
|
||||
AdjustedAt time.Time `json:"adjusted_at"`
|
||||
}
|
||||
|
||||
// Inventory Report Contracts
|
||||
type InventoryReportSummaryResponse struct {
|
||||
TotalProducts int `json:"total_products"`
|
||||
TotalIngredients int `json:"total_ingredients"`
|
||||
TotalValue float64 `json:"total_value"`
|
||||
LowStockProducts int `json:"low_stock_products"`
|
||||
LowStockIngredients int `json:"low_stock_ingredients"`
|
||||
ZeroStockProducts int `json:"zero_stock_products"`
|
||||
ZeroStockIngredients int `json:"zero_stock_ingredients"`
|
||||
OutletID string `json:"outlet_id"`
|
||||
OutletName string `json:"outlet_name"`
|
||||
GeneratedAt string `json:"generated_at"`
|
||||
}
|
||||
|
||||
type InventoryReportDetailResponse struct {
|
||||
Summary *InventoryReportSummaryResponse `json:"summary"`
|
||||
Products []*InventoryProductDetailResponse `json:"products"`
|
||||
Ingredients []*InventoryIngredientDetailResponse `json:"ingredients"`
|
||||
}
|
||||
|
||||
type InventoryProductDetailResponse struct {
|
||||
ID string `json:"id"`
|
||||
ProductID string `json:"product_id"`
|
||||
ProductName string `json:"product_name"`
|
||||
CategoryName string `json:"category_name"`
|
||||
Quantity int `json:"quantity"`
|
||||
ReorderLevel int `json:"reorder_level"`
|
||||
UnitCost float64 `json:"unit_cost"`
|
||||
TotalValue float64 `json:"total_value"`
|
||||
IsLowStock bool `json:"is_low_stock"`
|
||||
IsZeroStock bool `json:"is_zero_stock"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type InventoryIngredientDetailResponse struct {
|
||||
ID string `json:"id"`
|
||||
IngredientID string `json:"ingredient_id"`
|
||||
IngredientName string `json:"ingredient_name"`
|
||||
UnitName string `json:"unit_name"`
|
||||
Quantity int `json:"quantity"`
|
||||
ReorderLevel int `json:"reorder_level"`
|
||||
UnitCost float64 `json:"unit_cost"`
|
||||
TotalValue float64 `json:"total_value"`
|
||||
IsLowStock bool `json:"is_low_stock"`
|
||||
IsZeroStock bool `json:"is_zero_stock"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user