Fix product performance grouped JSON build
This commit is contained in:
@@ -252,6 +252,9 @@ const columns = [
|
||||
style: 'width:7%',
|
||||
headerStyle: 'width:7%'
|
||||
},
|
||||
{ name: 'ceketDepoGiris', label: 'C-Ceket Depo Giris', field: 'ceketDepoGiris', align: 'right', sortable: true, format: val => formatQuantity(val), style: 'width:7%', headerStyle: 'width:7%' },
|
||||
{ name: 'pantolonDepoGiris', label: 'P-Pantolon Depo Giris', field: 'pantolonDepoGiris', align: 'right', sortable: true, format: val => formatQuantity(val), style: 'width:7%', headerStyle: 'width:7%' },
|
||||
{ name: 'yelekDepoGiris', label: 'Y-Yelek Depo Giris', field: 'yelekDepoGiris', align: 'right', sortable: true, format: val => formatQuantity(val), style: 'width:7%', headerStyle: 'width:7%' },
|
||||
{
|
||||
name: 'sMModelKodu',
|
||||
label: 'Model Kodu',
|
||||
@@ -312,7 +315,11 @@ function getColumnFilter (name) {
|
||||
}
|
||||
|
||||
function isNumericColumn (name) {
|
||||
return name === 'lMMiktar_G'
|
||||
return ['lMMiktar_G', 'ceketDepoGiris', 'pantolonDepoGiris', 'yelekDepoGiris'].includes(name)
|
||||
}
|
||||
|
||||
function formatQuantity (value) {
|
||||
return Number(value || 0).toLocaleString('tr-TR', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
||||
}
|
||||
|
||||
function parseNumberFilter (value) {
|
||||
@@ -477,7 +484,7 @@ function escapeExcelCsvCell (value) {
|
||||
}
|
||||
|
||||
function formatExcelCsvCell (col, rawValue, displayValue) {
|
||||
if (col?.name === 'lMMiktar_G') {
|
||||
if (isNumericColumn(col?.name)) {
|
||||
const numericValue = Number(rawValue)
|
||||
if (Number.isFinite(numericValue)) return String(numericValue).replace('.', ',')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user