feat: add IsReturnable field to InvReturnProduct and update mapping in response
Deploy Application / deploy (push) Successful in 20s
Details
Deploy Application / deploy (push) Successful in 20s
Details
This commit is contained in:
parent
38d05c95ea
commit
5c05c69366
|
|
@ -90,10 +90,11 @@ type InventoryReturnLineResponse struct {
|
|||
}
|
||||
|
||||
type InvReturnProduct struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
RefNumber string `json:"ref_number"`
|
||||
Uom pkgdto.IdNameResponse `json:"uom"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
RefNumber string `json:"ref_number"`
|
||||
IsReturnable bool `json:"is_returnable"`
|
||||
Uom pkgdto.IdNameResponse `json:"uom"`
|
||||
}
|
||||
|
||||
// Helper untuk mapping entity ke response
|
||||
|
|
@ -158,10 +159,11 @@ func ToInventoryReturnLineResponse(line entities.TInventoryReturnLineEntity) Inv
|
|||
}
|
||||
}
|
||||
product = InvReturnProduct{
|
||||
ID: line.Product.ID.String(),
|
||||
Name: line.Product.Name,
|
||||
RefNumber: line.Product.RefNumber,
|
||||
Uom: uom,
|
||||
ID: line.Product.ID.String(),
|
||||
Name: line.Product.Name,
|
||||
RefNumber: line.Product.RefNumber,
|
||||
IsReturnable: line.Product.IsReturnable,
|
||||
Uom: uom,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue