feat: add IsReturnable field to InvReturnProduct and update mapping in response
Deploy Application / deploy (push) Successful in 20s Details

This commit is contained in:
Habib Fatkhul Rohman 2025-12-10 10:18:17 +07:00
parent 38d05c95ea
commit 5c05c69366
1 changed files with 10 additions and 8 deletions

View File

@ -93,6 +93,7 @@ type InvReturnProduct struct {
ID string `json:"id"` ID string `json:"id"`
Name string `json:"name"` Name string `json:"name"`
RefNumber string `json:"ref_number"` RefNumber string `json:"ref_number"`
IsReturnable bool `json:"is_returnable"`
Uom pkgdto.IdNameResponse `json:"uom"` Uom pkgdto.IdNameResponse `json:"uom"`
} }
@ -161,6 +162,7 @@ func ToInventoryReturnLineResponse(line entities.TInventoryReturnLineEntity) Inv
ID: line.Product.ID.String(), ID: line.Product.ID.String(),
Name: line.Product.Name, Name: line.Product.Name,
RefNumber: line.Product.RefNumber, RefNumber: line.Product.RefNumber,
IsReturnable: line.Product.IsReturnable,
Uom: uom, Uom: uom,
} }
} }