1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00

Merge branch 'dev' for release 6.3.24

This commit is contained in:
Du Peng 2024-05-28 12:10:46 +02:00
commit 1f7d10bb29
16 changed files with 23 additions and 8 deletions

View File

@ -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

View File

@ -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)

View File

@ -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);
});

View File

@ -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

View File

@ -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]

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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",