35 lines
912 B
TypeScript
35 lines
912 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
|
|
import type { ColumnsType } from 'antd/lib/table';
|
|
import { formatMoney } from 'tools/format';
|
|
import { pipe } from 'tools/function';
|
|
import { round } from 'tools/number';
|
|
import type { Payment } from './types';
|
|
|
|
export const columns: ColumnsType<Payment> = [
|
|
{
|
|
key: 'num',
|
|
dataIndex: 'num',
|
|
title: '#',
|
|
width: '10%',
|
|
},
|
|
{
|
|
key: 'paymentSum',
|
|
dataIndex: 'paymentSum',
|
|
title: 'Сумма платежа',
|
|
render: (value) => pipe(round, formatMoney)(value),
|
|
},
|
|
{
|
|
key: 'ndsCompensation',
|
|
dataIndex: 'ndsCompensation',
|
|
title: 'НДС к возмещению',
|
|
render: (value) => pipe(round, formatMoney)(value),
|
|
},
|
|
{
|
|
key: 'redemptionAmount',
|
|
dataIndex: 'redemptionAmount',
|
|
title: 'Сумма досрочного выкупа',
|
|
render: (value) => pipe(round, formatMoney)(value),
|
|
},
|
|
];
|