feat(server): styling financial reports

This commit is contained in:
Ahmed Bouhuolia
2024-02-20 21:36:16 +02:00
parent c06a8d9ca3
commit f6f6bc31b6
12 changed files with 147 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ const dynamicColumnMapper = R.curry((data, column) => {
const totalColumn = amountAccessor(data);
return R.compose(
R.when(R.pathEq(['key'], 'account_name'), accountNameColumn),
R.when(R.pathEq(['key'], 'account'), accountNameColumn),
R.when(R.pathEq(['key'], 'credit'), creditColumn),
R.when(R.pathEq(['key'], 'debit'), debitColumn),
R.when(R.pathEq(['key'], 'total'), totalColumn),