Browse Source

remove math rounding

pull/2/head
Wahyu Ramadhan 2 years ago
parent
commit
8cad4f2902
  1. 22
      src/views/SimproV2/CreatedProyek/ImportActivity/index.js

22
src/views/SimproV2/CreatedProyek/ImportActivity/index.js

@ -57,9 +57,8 @@ const columnToIndexs = {
weight: 4, weight: 4,
start_date: 5, start_date: 5,
end_date: 6, end_date: 6,
picKit: 7, nik: 7,
picOwner: 8, duration: 8
duration: 9
} }
const ExcelDateToJSDate = (date) => { const ExcelDateToJSDate = (date) => {
@ -133,7 +132,7 @@ const ImportActivity = ({ params }) => {
} }
if(prop == 'weight'){ if(prop == 'weight'){
columnData = Math.round(columnData * 100) columnData = columnData * 100
} }
extractedRow[prop] = columnData extractedRow[prop] = columnData
@ -238,18 +237,13 @@ const ImportActivity = ({ params }) => {
title: 'Duration', title: 'Duration',
dataIndex: 'duration', dataIndex: 'duration',
key: 'duration', key: 'duration',
align: 'right',
},
{
title: 'PIC KIT',
dataIndex: 'picKit',
key: 'picKit',
}, },
{ {
title: 'PIC Owner', title: 'NIK',
dataIndex: 'picOwner', dataIndex: 'nik',
key: 'picOwner', key: 'nik',
}, align: 'right',
}
]; ];
if (isMovePage) { if (isMovePage) {

Loading…
Cancel
Save