feat(api): Add new subscription properties and locale support for deduction ratios and reset cycles

This commit is contained in:
web@ppanel
2024-12-29 16:18:21 +07:00
parent a93db4eb9f
commit fec80f592d
29 changed files with 976 additions and 431 deletions
File diff suppressed because it is too large Load Diff
@@ -133,7 +133,14 @@ export default function SubscribeTable() {
{
accessorKey: 'unit_price',
header: t('unitPrice'),
cell: ({ row }) => <Display type='currency' value={row.getValue('unit_price')} />,
cell: ({ row }) => {
return (
<>
<Display type='currency' value={row.getValue('unit_price')} />/
{t(row.original.unit_time ? `form.${row.original.unit_time}` : 'form.Month')}
</>
);
},
},
{
accessorKey: 'replacement',