add gudang tujuan to po

This commit is contained in:
giovanni
2026-05-05 06:41:10 +07:00
parent 45028212e1
commit 7bab8c66c1
2 changed files with 108 additions and 83 deletions
@@ -31,6 +31,7 @@ type PurchaseListDTO struct {
CreatedUser *userDTO.UserRelationDTO `json:"created_user"`
RequesterName string `json:"requester_name"`
PoExpedition []PoExpeditionDTO `json:"po_expedition"`
Items []PurchaseItemDTO `json:"items"`
Products []productDTO.ProductRelationDTO `json:"products"`
Location *locationDTO.LocationRelationDTO `json:"location"`
Area *areaDTO.AreaRelationDTO `json:"area"`
@@ -227,6 +228,7 @@ func ToPurchaseListDTO(p entity.Purchase) PurchaseListDTO {
CreatedUser: createdUser,
RequesterName: requesterName,
PoExpedition: poExpedition,
Items: ToPurchaseItemDTOs(p.Items),
Products: products,
Location: location,
Area: area,