-
Notifications
You must be signed in to change notification settings - Fork 9
Sanction
- This class contains all informations about sanctions.
-
def self.all_years
-
Returns one array of years, for the sanctions.
-
def refresh!
-
Updates the the process number of the sanction.
-
def self.percentual_sanction(value)
-
Calculate the percentage of sanctions for the graphs.
-
Date initial_date
-
Stores the initial date of the sanctions.
-
Date final_date
-
Stores the final date of the sanctions.
-
String process_number
-
Stores the process number of the sanction.
-
String sanction_organ
-
Stores the organ that made the sanction.
-
Integer enterprise_id
-
Stores the id of the enterprise that received the sanction.
-
Integer sanction_type_id
-
Stores the id of the sanction type.
-
Integer state_id
-
State that the enterprise receives the sanction
-
years
-
Stores the array of years.
-
s
-
Stores the process number of the sanction.
-
total
-
Is the number of total of sanctions.
-
value
-
Receive the percentage of the total.