From 8792161c02c437e32a43f28d83b961c224172408 Mon Sep 17 00:00:00 2001 From: aguhh18 Date: Thu, 15 Jan 2026 10:58:00 +0700 Subject: [PATCH] feat[BE]: rename Price field to UnitPrice in CustomerPaymentReportRow for clarity --- internal/modules/repports/dto/repportCustomerPayment.dto.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/modules/repports/dto/repportCustomerPayment.dto.go b/internal/modules/repports/dto/repportCustomerPayment.dto.go index 5a8a69ac..99862349 100644 --- a/internal/modules/repports/dto/repportCustomerPayment.dto.go +++ b/internal/modules/repports/dto/repportCustomerPayment.dto.go @@ -19,7 +19,7 @@ type CustomerPaymentReportRow struct { Qty float64 `json:"qty"` Weight float64 `json:"weight"` AverageWeight float64 `json:"average_weight"` - Price float64 `json:"price"` + UnitPrice float64 `json:"unit_price"` FinalPrice float64 `json:"final_price"` TotalPrice float64 `json:"total_price"` PaymentAmount float64 `json:"payment_amount"` @@ -61,7 +61,7 @@ func ToCustomerPaymentReportRow(tx repportRepo.CustomerPaymentTransaction) Custo Qty: tx.Qty, Weight: tx.Weight, AverageWeight: tx.AverageWeight, - Price: tx.Price, + UnitPrice: tx.Price, FinalPrice: tx.FinalPrice, TotalPrice: tx.TotalPrice, PaymentAmount: tx.PaymentAmount,