chore: rename total_sales_price to average_sales_price in SalesSummary

This commit is contained in:
ValdiANS
2026-01-21 09:40:22 +07:00
parent ead338fa0f
commit c695afa1e7
2 changed files with 2 additions and 2 deletions
@@ -149,7 +149,7 @@ const DailyMarketingsTable = ({
cell: (props) => formatCurrency(props.row.original.sales_price_per_kg),
footer: () => {
const totalSalesPrice = isResponseSuccess(dailyMarketings)
? dailyMarketings?.total?.total_sales_price
? dailyMarketings?.total?.average_sales_price
: 0;
return totalSalesPrice ? formatNumber(totalSalesPrice) : '-';
+1 -1
View File
@@ -43,7 +43,7 @@ export interface SalesSummary {
total_qty: number;
average_weight_kg: number;
total_weight_kg: number;
total_sales_price: number;
average_sales_price: number;
total_sales_amount: number;
total_hpp_amount: number;
total_hpp_price_per_kg: number;