This repository has been archived on 2025-05-09. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-03 15:56:32 +03:00

46 lines
970 B
TypeScript

//@ts-nocheck
import Label from 'client/Elements/Label';
import { formatMoney } from 'core/tools/format';
import { pipe } from 'core/tools/func';
import { round } from 'core/tools/num';
import { Column, Table } from '../../types/tables';
const columns: Column[] = [
{
name: 'paymentSum',
title: 'Сумма платежа',
Component: Label,
props: {
middleware: value => pipe(round, formatMoney)(value),
},
},
{
name: 'ndsCompensation',
title: 'НДС к возмещению',
Component: Label,
props: {
middleware: value => pipe(round, formatMoney)(value),
},
},
{
name: 'redemptionAmount',
title: 'Сумма досрочного выкупа',
Component: Label,
props: {
middleware: value => pipe(round, formatMoney)(value),
},
},
];
const params: Table['params'] = {
features: {
numerize: true,
},
};
export default {
columns,
rows: [],
params,
} as Table;