Skip to content

Commit

Permalink
Merge branch 'dev' for release 6.3.24
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed May 28, 2024
2 parents 064aac4 + d00fb18 commit 1f7d10b
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Next release

## v6.3.24 2024 May 28

- Fix a bug: unable to show member children for admin
- improvement: add wallet amount to members Excel export
- updates translations

## v6.3.23 2024 May 20

- Fix a bug: unable to update availability slot end time for training
Expand Down
1 change: 0 additions & 1 deletion app/controllers/api/children_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class API::ChildrenController < API::APIController
before_action :set_child, only: %i[show update destroy validate]

def index
authorize Child
user_id = current_user.id
user_id = params[:user_id] if current_user.privileged? && params[:user_id]
@children = Child.where(user_id: user_id).where('birthday >= ?', 18.years.ago).includes(:supporting_document_files).order(:created_at)
Expand Down
1 change: 1 addition & 0 deletions app/frontend/src/javascript/filters/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ Application.Filters.filter('currency', [function ($locale) {

Application.Filters.filter('encodeURI', [function () {
return function (str) {
if (!str) return '';
return str.replace(/[!'()*]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16);
});
Expand Down
4 changes: 0 additions & 4 deletions app/policies/child_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

# Check the access policies for API::ChildrenController
class ChildPolicy < ApplicationPolicy
def index?
!user.organization?
end

def create?
!user.organization? && user.id == record.user_id
end
Expand Down
7 changes: 5 additions & 2 deletions app/views/exports/users_members.xlsx.axlsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ de:
man: "Mann"
woman: "Frau"
without_subscriptions: "Ohne Abonnement"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Reservierungen"
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions config/locales/es-MX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ es-MX:
man: "Hombre"
woman: "Mujer"
without_subscriptions: "Sin suscripciones"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Reservas"
Expand Down
1 change: 1 addition & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ es:
man: "Hombre"
woman: "Mujer"
without_subscriptions: "Sin suscripciones"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Reservas"
Expand Down
1 change: 1 addition & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ fr:
man: "Homme"
woman: "Femme"
without_subscriptions: "Sans Abonnement"
wallet_amount: "Porte-monnaie"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Réservations"
Expand Down
1 change: 1 addition & 0 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ it:
man: "Uomo"
woman: "Donna"
without_subscriptions: "Senza abbonamenti"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Le tue prenotazioni"
Expand Down
1 change: 1 addition & 0 deletions config/locales/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
man: "Mann"
woman: "Kvinne"
without_subscriptions: "Uten abonnementer"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Reservasjoner"
Expand Down
1 change: 1 addition & 0 deletions config/locales/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ pt:
man: "Homem"
woman: "Mulher"
without_subscriptions: "Sem assinaturas"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Reservas"
Expand Down
1 change: 1 addition & 0 deletions config/locales/sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ sv:
man: "Man"
woman: "Kvinna"
without_subscriptions: "Utan prenumerationer"
wallet_amount: "Wallet"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "Bokningar"
Expand Down
1 change: 1 addition & 0 deletions config/locales/zu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ zu:
man: "crwdns3479:0crwdne3479:0"
woman: "crwdns3481:0crwdne3481:0"
without_subscriptions: "crwdns3483:0crwdne3483:0"
wallet_amount: "crwdns38214:0crwdne38214:0"
#machines/trainings/events reservations list to EXCEL format
export_reservations:
reservations: "crwdns3485:0crwdne3485:0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fab-manager",
"version": "6.3.23",
"version": "6.3.24",
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
"keywords": [
"fablab",
Expand Down

0 comments on commit 1f7d10b

Please sign in to comment.