Class: Billing::Report

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/billing/report.rb

Constant Summary collapse

FISCAL_X_REPORT =
'x_report'.freeze
FISCAL_Z_REPORT =
'z_report'.freeze
FISCAL_PERIOD_REPORT =
'period_report'.freeze
FISCAL_PAYED_RECVD =
'payed_recvd'.freeze
F_OPERATIONS =
[FISCAL_X_REPORT, FISCAL_Z_REPORT, FISCAL_PERIOD_REPORT, FISCAL_PAYED_RECVD].freeze

Instance Method Summary collapse

Instance Method Details

#fiscalizationObject



34
35
36
37
38
39
# File 'app/models/billing/report.rb', line 34

def fiscalization
  if origin.fiscal_device.present?
    perform_fiscal_job
    save
  end
end