1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-04-07 22:54:11 +02:00

Merge branch 'dev' for release 6.3.45

This commit is contained in:
Du Peng 2025-03-31 11:52:11 +02:00
commit c40490c95e
3 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,10 @@
## Next release
## v6.3.45 2025 March 31
- Fix a bug: unable to cancel stripe subscription canceled
## v6.3.44 2025 March 20
- Fix a bug: event start/end date is not correct in the event list if the daylight saving time

View File

@ -16,7 +16,7 @@ class Stripe::Service < Payment::Service
first_item = price_details[:schedule][:items].min_by(&:due_date)
subscription = shopping_cart.items.find { |item| item.instance_of?(CartItem::Subscription) }.to_object
reservable_stp_id = shopping_cart.items.find { |item| item.is_a?(CartItem::Reservation) }&.to_object
&.reservable&.payment_gateway_object&.gateway_object_id
&.reservable&.payment_gateway_object&.gateway_object_id
WalletService.debit_user_wallet(payment_schedule, shopping_cart.customer, transaction: false)
handle_wallet_transaction(payment_schedule)
@ -47,7 +47,7 @@ class Stripe::Service < Payment::Service
stp_subscription = payment_schedule.gateway_subscription.retrieve
res = Stripe::Subscription.delete(stp_subscription.id, {}, api_key: stripe_key)
Stripe::Subscription.delete(stp_subscription.id, {}, api_key: stripe_key) if stp_subscription.status != 'canceled'
res.status == 'canceled'
end

View File

@ -1,6 +1,6 @@
{
"name": "fab-manager",
"version": "6.3.44",
"version": "6.3.45",
"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",