Merge newer features and remove legacy code

This commit is contained in:
kbe
2025-09-18 01:04:55 +02:00
parent a0640b5401
commit 355d4e45d7
12 changed files with 1450 additions and 200 deletions

View File

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