Skip to content

Commit

Permalink
Merge pull request #1198 from internetee/quick-fix-rake-invoices-amou…
Browse files Browse the repository at this point in the history
…nt-to-billing

quick fix: send invoices amount to billing
  • Loading branch information
vohmar authored Jan 4, 2024
2 parents 383ea99 + 6fd216a commit c9771ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/tasks/send_invoice_amount_to_billing.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace :invoices do
desc 'One time task to export invoice data to billing system'
task send_amount_to_billing: :environment do
invoices = Invoice.issued

invoices.each do |invoice|
EisBilling::UpdateInvoiceDataService.call(invoice_number: invoice.number, transaction_amount: invoice.total.to_f)
end
end
end

0 comments on commit c9771ff

Please sign in to comment.