Fixed quantity bug
This commit is contained in:
@@ -42,3 +42,25 @@ type ProjectItem struct {
|
||||
ProjectID int `json:"project_id"`
|
||||
Quantity int `json:"quantity"`
|
||||
}
|
||||
|
||||
type ItemExtended struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Category string `json:"category"`
|
||||
Description string `json:"description"`
|
||||
TotalQuantity int `json:"total_quantity"` // Summe aus allen Stock-Einträgen
|
||||
AllocatedQty int `json:"allocated_quantity"` // Summe aus allen Projekt-Zuweisungen
|
||||
AvailableQty int `json:"available_quantity"` // Total - Allocated
|
||||
}
|
||||
|
||||
type LocationContent struct {
|
||||
ItemID int `json:"item_id"`
|
||||
ItemName string `json:"item_name"`
|
||||
Quantity int `json:"quantity"`
|
||||
}
|
||||
|
||||
type ProjectDetailItem struct {
|
||||
ItemID int `json:"item_id"`
|
||||
ItemName string `json:"item_name"`
|
||||
Quantity int `json:"quantity"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user