class Reporting::Accounting::ReceiptJob < Reporting::Job
  def process
    payment = @school.accounting_decreases.find_by(id: @params['id'])
    @tmp_file = Pdf::Accounting::PaymentReceiptService.call(payment)
    @filename = "Accounting_Receipt_#{payment.family.code}_#{timestamp}.pdf"
    save_to_user
    send_report
  end
end
