mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE):Add HPP Amount column to daily marketing export
This commit is contained in:
@@ -42,6 +42,7 @@ export const generateDailyMarketingExcel = async (
|
||||
{ header: 'Bobot Total (Kg)', key: 'totalWeight', width: 18 },
|
||||
{ header: 'Harga Jual (Rp)', key: 'salesPrice', width: 18 },
|
||||
{ header: 'HPP (Rp)', key: 'hppPrice', width: 15 },
|
||||
{ header: 'HPP Amount (Rp)', key: 'hppAmount', width: 20 },
|
||||
{ header: 'Total (Rp)', key: 'salesAmount', width: 20 },
|
||||
];
|
||||
|
||||
@@ -67,6 +68,7 @@ export const generateDailyMarketingExcel = async (
|
||||
totalWeight: formatNumber(item.total_weight_kg || 0),
|
||||
salesPrice: formatCurrency(item.sales_price_per_kg || 0),
|
||||
hppPrice: formatCurrency(item.hpp_price_per_kg || 0),
|
||||
hppAmount: formatCurrency(item.hpp_amount || 0),
|
||||
salesAmount: formatCurrency(item.sales_amount || 0),
|
||||
});
|
||||
});
|
||||
@@ -75,21 +77,22 @@ export const generateDailyMarketingExcel = async (
|
||||
if (params.summaryTotal) {
|
||||
worksheet.addRow({
|
||||
no: 'TOTAL',
|
||||
soDate: 'ALL',
|
||||
realizationDate: '-',
|
||||
aging: '-',
|
||||
warehouse: '-',
|
||||
customer: '-',
|
||||
doNumber: '-',
|
||||
sales: '-',
|
||||
vehicleNumber: '-',
|
||||
marketingType: '-',
|
||||
product: '-',
|
||||
soDate: '',
|
||||
realizationDate: '',
|
||||
aging: '',
|
||||
warehouse: '',
|
||||
customer: '',
|
||||
doNumber: '',
|
||||
sales: '',
|
||||
vehicleNumber: '',
|
||||
marketingType: '',
|
||||
product: '',
|
||||
qty: formatNumber(params.summaryTotal.total_qty || 0),
|
||||
averageWeight: formatNumber(params.summaryTotal.average_weight_kg || 0),
|
||||
totalWeight: formatNumber(params.summaryTotal.total_weight_kg || 0),
|
||||
salesPrice: formatNumber(params.summaryTotal.average_sales_price || 0),
|
||||
salesPrice: formatCurrency(params.summaryTotal.average_sales_price || 0),
|
||||
hppPrice: formatCurrency(params.summaryTotal.total_hpp_price_per_kg || 0),
|
||||
hppAmount: formatCurrency(params.summaryTotal.total_hpp_amount || 0),
|
||||
salesAmount: formatCurrency(params.summaryTotal.total_sales_amount || 0),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user