From c8ea370e4bf2d87bb74c965c9b0b631e4ced92dd Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Wed, 22 Apr 2026 09:58:54 +0700 Subject: [PATCH] fix: DTO adjustment for bulk approve --- internal/modules/marketing/dto/deliveryorder.dto.go | 2 ++ 1 file changed, 2 insertions(+) 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,