Merge branch 'fix/inventory-stock' into 'development'

[FIX][BE]: add response stock to informasi stock product

See merge request mbugroup/lti-api!295
This commit is contained in:
Hafizh A. Y.
2026-02-02 06:18:10 +00:00
@@ -62,6 +62,7 @@ type StockLogDetailDTO struct {
Id uint `json:"id"`
Increase float64 `json:"increase"`
Decrease float64 `json:"decrease"`
Stock float64 `json:"stock"`
LoggableType string `json:"loggable_type"`
LoggableId uint `json:"loggable_id"`
Notes *string `json:"notes"`
@@ -195,6 +196,7 @@ func mapStockLogs(src []entity.StockLog) []StockLogDetailDTO {
Id: log.Id,
Increase: log.Increase,
Decrease: log.Decrease,
Stock: log.Stock,
LoggableType: log.LoggableType,
LoggableId: log.LoggableId,
Notes: notes,