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
|
|
@ -93,6 +93,7 @@ type InvReturnProduct struct {
|
|||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
RefNumber string `json:"ref_number"`
|
||||
IsReturnable bool `json:"is_returnable"`
|
||||
Uom pkgdto.IdNameResponse `json:"uom"`
|
||||
}
|
||||
|
||||
|
|
@ -161,6 +162,7 @@ func ToInventoryReturnLineResponse(line entities.TInventoryReturnLineEntity) Inv
|
|||
ID: line.Product.ID.String(),
|
||||
Name: line.Product.Name,
|
||||
RefNumber: line.Product.RefNumber,
|
||||
IsReturnable: line.Product.IsReturnable,
|
||||
Uom: uom,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue