next_sges 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/next_sges/application_record.rb +1 -1
- data/app/models/next_sges/collection_note.rb +1 -1
- data/app/models/next_sges/school.rb +1 -0
- data/app/models/next_sges/student.rb +1 -1
- data/db/migrate/20180227232928_add_colletion_date_to_next_sges_schools.rb +5 -0
- data/db/migrate/20180228104835_add_email_text_settings_to_next_sges_schools.rb +13 -0
- data/lib/next_sges/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f45f4687f1117338ffd1c165b005dd44fe0cb08e
|
|
4
|
+
data.tar.gz: f821d67bf1ede7599003d67a75bf6762916202b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46c6a372160b8411784b921442d316bb476418d03c1629aade08233cc068ffaef6949011726318f20edb8e4cffb99a4737924a97f73f85ece1d552a3bd2c704b
|
|
7
|
+
data.tar.gz: 8baa5de47b4a149174e742c05b6bc05b6fec71e88c908b85d5d3efbd215dd8e6198efae0a5087b514f99d1be4d0783c1680c10a3c75dc7e3845a9718ab57ea47
|
|
@@ -2,7 +2,7 @@ module NextSges
|
|
|
2
2
|
class ApplicationRecord < ::ApplicationRecord
|
|
3
3
|
self.abstract_class = true
|
|
4
4
|
MAIL_REGEX = /\A[a-z0-9._%+-]+@[a-z0-9._%+-].[a-z0-9._%+-]/i
|
|
5
|
-
CELL_REGEX = /
|
|
5
|
+
CELL_REGEX = /[[:digit:]]{9}/
|
|
6
6
|
DEFAULT_STATUS_ENUM = {active: 0, inactive: 1}
|
|
7
7
|
DEFAULT_IDENTIFICATION_ENUM = {identification: 0, passport: 2}
|
|
8
8
|
|
|
@@ -52,7 +52,7 @@ module NextSges
|
|
|
52
52
|
def responsible_pay(responsible)
|
|
53
53
|
return unless can_responsible_pay?(responsible)
|
|
54
54
|
if paid!
|
|
55
|
-
|
|
55
|
+
CollectionNoteResponsible.create(responsible_id: responsible.id, collection_note_id: id, value: value)
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -10,6 +10,7 @@ module NextSges
|
|
|
10
10
|
has_many :responsibles, dependent: :destroy, class_name: Responsible.name
|
|
11
11
|
has_many :student_responsibles, through: :responsibles, class_name: StudentResponsible.name
|
|
12
12
|
has_many :student_responsible_periods, through: :student_responsibles, class_name: StudentResponsiblePeriod.name
|
|
13
|
+
has_many :bank_accounts, as: :owner
|
|
13
14
|
|
|
14
15
|
INITIAL_LETTER = "C"
|
|
15
16
|
|
|
@@ -8,7 +8,7 @@ module NextSges
|
|
|
8
8
|
has_many :student_responsible_periods, through: :student_responsibles, class_name: StudentResponsiblePeriod.name
|
|
9
9
|
has_and_belongs_to_many :collection_types, association_foreign_key: :next_sges_collection_type_id, foreign_key: :next_sges_student_id
|
|
10
10
|
enum relation: {son: 0, other: 1}
|
|
11
|
-
enum identification_type:
|
|
11
|
+
enum identification_type: {identification_card: 0}
|
|
12
12
|
enum gender: {male: 0, female: 1}
|
|
13
13
|
|
|
14
14
|
attr_accessor :aux_types_ids
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class AddEmailTextSettingsToNextSgesSchools < ActiveRecord::Migration[5.1]
|
|
2
|
+
def change
|
|
3
|
+
rename_column :next_sges_schools, :back_name, :bank_name
|
|
4
|
+
rename_column :next_sges_schools, :back_account_number, :bank_account_number
|
|
5
|
+
rename_column :next_sges_schools, :back_account_iban, :bank_account_iban
|
|
6
|
+
|
|
7
|
+
add_column :next_sges_schools, :email_collection_note_activated, :text
|
|
8
|
+
add_column :next_sges_schools, :email_collection_note_paid, :text
|
|
9
|
+
add_column :next_sges_schools, :email_collection_note_deactivated, :text
|
|
10
|
+
add_column :next_sges_schools, :email_deposit_created, :text
|
|
11
|
+
add_column :next_sges_schools, :email_deposit_destroyed, :text
|
|
12
|
+
end
|
|
13
|
+
end
|
data/lib/next_sges/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: next_sges
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NEXTBSS
|
|
@@ -197,6 +197,8 @@ files:
|
|
|
197
197
|
- db/migrate/20180219135554_add_gender_to_students.rb
|
|
198
198
|
- db/migrate/20180221140558_add_responsible_to_next_sges_deposits.rb
|
|
199
199
|
- db/migrate/20180227075126_fix_responisble_on_deposit.rb
|
|
200
|
+
- db/migrate/20180227232928_add_colletion_date_to_next_sges_schools.rb
|
|
201
|
+
- db/migrate/20180228104835_add_email_text_settings_to_next_sges_schools.rb
|
|
200
202
|
- lib/next_sges.rb
|
|
201
203
|
- lib/next_sges/engine.rb
|
|
202
204
|
- lib/next_sges/version.rb
|