mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
(feat) add wallet amount to members Excel export
This commit is contained in:
parent
6f6ea460ae
commit
bab7fa9f7c
@ -3,6 +3,7 @@
|
||||
## Next release
|
||||
|
||||
- Fix a bug: unable to show member children for admin
|
||||
- improvement: add wallet amount to members Excel export
|
||||
|
||||
## v6.3.23 2024 May 20
|
||||
|
||||
|
@ -35,7 +35,9 @@ wb.add_worksheet(name: ExcelService.name_safe(t('export_members.members'))) do |
|
||||
t('export_members.echo_sciences'),
|
||||
t('export_members.organization'),
|
||||
t('export_members.organization_address'),
|
||||
t('export_members.note')]
|
||||
t('export_members.note'),
|
||||
t('export_members.wallet_amount'),
|
||||
]
|
||||
sheet.add_row columns, style: header
|
||||
|
||||
# data rows
|
||||
@ -69,7 +71,8 @@ wb.add_worksheet(name: ExcelService.name_safe(t('export_members.members'))) do |
|
||||
member.profile.echosciences || '',
|
||||
member.invoicing_profile&.organization&.name || '',
|
||||
member.invoicing_profile&.organization&.address&.address || '',
|
||||
ActionController::Base.helpers.sanitize(member.profile.note, tags: []) || ''
|
||||
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) : ''
|
||||
]
|
||||
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]
|
||||
|
@ -228,6 +228,7 @@ en:
|
||||
man: "Man"
|
||||
woman: "Woman"
|
||||
without_subscriptions: "Without subscriptions"
|
||||
wallet_amount: "Wallet"
|
||||
#machines/trainings/events reservations list to EXCEL format
|
||||
export_reservations:
|
||||
reservations: "Reservations"
|
||||
|
Loading…
Reference in New Issue
Block a user