Skip to content

Commit

Permalink
(bug) member wallet amount calculation error in the excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed May 28, 2024
1 parent d00fb18 commit 103ece1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next release

- Fix a bug: member wallet amount calculation error in the excel export

## v6.3.24 2024 May 28

- Fix a bug: unable to show member children for admin
Expand Down
2 changes: 1 addition & 1 deletion app/views/exports/users_members.xlsx.axlsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ wb.add_worksheet(name: ExcelService.name_safe(t('export_members.members'))) do |
member.invoicing_profile&.organization&.name || '',
member.invoicing_profile&.organization&.address&.address || '',
ActionController::Base.helpers.sanitize(member.profile.note, tags: []) || '',
member.wallet&.amount ? ActionController::Base.helpers.number_to_currency(member.wallet&.amount / 100.0, locale: CURRENCY_LOCALE) : ''
ActionController::Base.helpers.number_to_currency(member.wallet&.amount, locale: CURRENCY_LOCALE) || ''
]
styles = [nil, nil, nil, nil, nil, nil, date, nil, nil, nil, nil, nil, nil, nil,
nil, nil, nil, date, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil]
Expand Down

0 comments on commit 103ece1

Please sign in to comment.