Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
TobiasDeBruijn committed Jul 23, 2024
1 parent 8838b1c commit 993c9d8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/controllers/admin/payments_controller.rb
Original file line number Diff line number Diff line change
@@ -137,7 +137,6 @@ def create_invoice(csv, payments, payment_type, start_date, end_date = nil)
csv << if a && (a.name == "Lidmaatschap" || a.id == Settings['intro.membership'])
# Check on the name to allow previous years to be exported.


["", "8000", "#{ p.activity.name } - #{ p.member_id }", '0',
p.currency + p.transaction_fee, ""]
elsif p.activity.group.nil? ||
@@ -174,9 +173,9 @@ def create_invoice(csv, payments, payment_type, start_date, end_date = nil)

# As of December 2023, mongoose has been decoupled from Koala
# Exports after that don't really have to include the mongoose costs or TRX costs
if trx_mongoose_amount != 0
csv << ["", Settings.accountancy_ledger_number, trx_mongoose_cost, "21",
trx_mongoose_amount, Settings.accountancy_cost_location]
end
return unless trx_mongoose_amount != 0

csv << ["", Settings.accountancy_ledger_number, trx_mongoose_cost, "21",
trx_mongoose_amount, Settings.accountancy_cost_location]
end
end

0 comments on commit 993c9d8

Please sign in to comment.