diff --git a/internal/modules/marketing/dto/deliveryorder.dto.go b/internal/modules/marketing/dto/deliveryorder.dto.go index e8955d34..673227eb 100644 --- a/internal/modules/marketing/dto/deliveryorder.dto.go +++ b/internal/modules/marketing/dto/deliveryorder.dto.go @@ -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,