fix: DTO adjustment for bulk approve

This commit is contained in:
Adnan Zahir
2026-04-22 09:58:54 +07:00
parent 0d04397bd5
commit c8ea370e4b
@@ -64,6 +64,7 @@ type MarketingDeliveryProductDTO struct {
}
type DeliveryItemDTO struct {
MarketingProductId uint `json:"marketing_product_id"`
ProductWarehouse *productwarehouseDTO.ProductWarehousNestedDTO `json:"product_warehouse"`
Qty float64 `json:"qty"`
UnitPrice float64 `json:"unit_price"`
@@ -328,6 +329,7 @@ func groupDeliveryProducts(products []MarketingDeliveryProductDTO, soNumber stri
}
deliveryItem := DeliveryItemDTO{
MarketingProductId: product.MarketingProductId,
ProductWarehouse: product.ProductWarehouse,
Qty: product.Qty,
UnitPrice: product.UnitPrice,