changes name response transfer

This commit is contained in:
ragilap
2026-03-16 10:41:43 +07:00
parent b2e70fa6eb
commit d0f3392738
@@ -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,
}
}