mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fix admin operations on subscriptions w/ schedules
This commit is contained in:
parent
fa686187cd
commit
c478ade85c
@ -818,7 +818,8 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
|
||||
|
||||
// default parameters for the new subscription
|
||||
$scope.subscription = {
|
||||
payment_schedule: false
|
||||
payment_schedule: false,
|
||||
payment_method: 'check'
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -66,6 +66,7 @@ class Subscriptions::Subscribe
|
||||
generate_invoice(subscription, operator_profile_id, details)
|
||||
end
|
||||
payment.save
|
||||
payment.post_save(schedule&.stp_setup_intent_id)
|
||||
UsersCredits::Manager.new(user: new_sub.user).reset_credits
|
||||
return new_sub
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user