Merge newer features and remove legacy code
This commit is contained in:
@@ -60,22 +60,6 @@ class Admin::PayoutsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
# Mark a payout as manually processed (for SEPA transfers, etc.)
|
||||
def mark_as_manually_processed
|
||||
@payout = Payout.find(params[:id])
|
||||
|
||||
if @payout.pending? || @payout.processing?
|
||||
begin
|
||||
@payout.mark_as_manually_processed!
|
||||
redirect_to admin_payouts_path, notice: "Payout marked as manually processed. Please complete the bank transfer."
|
||||
rescue => e
|
||||
redirect_to admin_payouts_path, alert: "Failed to mark payout as manually processed: #{e.message}"
|
||||
end
|
||||
else
|
||||
redirect_to admin_payouts_path, alert: "Cannot mark this payout as manually processed."
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_payout
|
||||
|
||||
Reference in New Issue
Block a user