fix: Decimal amounts are rounded when create a new transaction on some transactions types

This commit is contained in:
Ahmed Bouhuolia
2024-02-06 20:31:48 +02:00
parent 374f1acf8a
commit 0f678e61c5
12 changed files with 62 additions and 19 deletions

View File

@@ -35,9 +35,9 @@ export const useEstimateReadonlyEntriesColumns = () => {
},
{
Header: intl.get('quantity'),
accessor: 'quantity',
accessor: 'quantity_formatted',
Cell: FormatNumberCell,
width: getColumnWidth(entries, 'quantity', {
width: getColumnWidth(entries, 'quantity_formatted', {
minWidth: 60,
magicSpacing: 5,
}),
@@ -59,7 +59,6 @@ export const useEstimateReadonlyEntriesColumns = () => {
{
Header: intl.get('amount'),
accessor: 'total_formatted',
Cell: FormatNumberCell,
width: getColumnWidth(entries, 'total_formatted', {
minWidth: 60,
magicSpacing: 5,