mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 07:45:44 +00:00
changes name response transfer
This commit is contained in:
@@ -17,6 +17,7 @@ type ProductWarehouseRelationDTO struct {
|
||||
WarehouseId uint `json:"warehouse_id"`
|
||||
Quantity float64 `json:"quantity"`
|
||||
AvailableQty *float64 `json:"available_qty,omitempty"`
|
||||
TransferAvailableQty *float64 `json:"transfer_available_qty,omitempty"`
|
||||
}
|
||||
|
||||
type ProductWarehouseListDTO struct {
|
||||
@@ -67,6 +68,7 @@ func ToProductWarehouseRelationDTO(e entity.ProductWarehouse) ProductWarehouseRe
|
||||
WarehouseId: e.WarehouseId, // Field yang benar dari entity
|
||||
Quantity: e.Quantity,
|
||||
AvailableQty: e.AvailableQty,
|
||||
TransferAvailableQty: e.AvailableQty,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user