mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 15:55:44 +00:00
feat[BE]: rename Price field to UnitPrice in CustomerPaymentReportRow for clarity
This commit is contained in:
@@ -19,7 +19,7 @@ type CustomerPaymentReportRow struct {
|
|||||||
Qty float64 `json:"qty"`
|
Qty float64 `json:"qty"`
|
||||||
Weight float64 `json:"weight"`
|
Weight float64 `json:"weight"`
|
||||||
AverageWeight float64 `json:"average_weight"`
|
AverageWeight float64 `json:"average_weight"`
|
||||||
Price float64 `json:"price"`
|
UnitPrice float64 `json:"unit_price"`
|
||||||
FinalPrice float64 `json:"final_price"`
|
FinalPrice float64 `json:"final_price"`
|
||||||
TotalPrice float64 `json:"total_price"`
|
TotalPrice float64 `json:"total_price"`
|
||||||
PaymentAmount float64 `json:"payment_amount"`
|
PaymentAmount float64 `json:"payment_amount"`
|
||||||
@@ -61,7 +61,7 @@ func ToCustomerPaymentReportRow(tx repportRepo.CustomerPaymentTransaction) Custo
|
|||||||
Qty: tx.Qty,
|
Qty: tx.Qty,
|
||||||
Weight: tx.Weight,
|
Weight: tx.Weight,
|
||||||
AverageWeight: tx.AverageWeight,
|
AverageWeight: tx.AverageWeight,
|
||||||
Price: tx.Price,
|
UnitPrice: tx.Price,
|
||||||
FinalPrice: tx.FinalPrice,
|
FinalPrice: tx.FinalPrice,
|
||||||
TotalPrice: tx.TotalPrice,
|
TotalPrice: tx.TotalPrice,
|
||||||
PaymentAmount: tx.PaymentAmount,
|
PaymentAmount: tx.PaymentAmount,
|
||||||
|
|||||||
Reference in New Issue
Block a user