sticutils 1.0.3 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/gestorh/ferias.rb +4 -0
- data/app/models/gestorh/folha_agrupada.rb +1 -0
- data/app/models/gestorh/funcionario.rb +2 -0
- data/app/models/gestorh/local_trabalho.rb +3 -0
- data/app/models/gestorh/vinculo.rb +2 -0
- data/app/models/intranet/tjpi_vinculo.rb +1 -1
- data/lib/sticutils/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bc7aa5003dee086839112b36be6a6e86e2fc930fd9b196d1b743423785587e0
|
4
|
+
data.tar.gz: c974b43294fdbd4df9fcc966cb3c640b71f14bcc81e66032656e815689d412e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe49290226acbdb6bb8de5a248448f88f340a1779256006d250962edb4ec75a8749b427973bc9b7b0a1678b3b073879624c7f26079ae5d941770d00f53827e6
|
7
|
+
data.tar.gz: 8731dd1ce2000af592e76ae7c25a42a5cf27c8bf4d6272d8c6d8dfa603567c127772fe6107daa62500f0cd091ff829bd3e75a235999d3b9267c63e11b739f941
|
@@ -8,6 +8,7 @@ class Gestorh::FolhaAgrupada < Gestorh::GestorhRecord
|
|
8
8
|
belongs_to :cargo, foreign_key: :mvps_cargo, primary_key: :fc_codigo, class_name: 'Gestorh::Funcao'
|
9
9
|
belongs_to :lotacao, foreign_key: :mvps_reglotacao, primary_key: :lt_registro
|
10
10
|
belongs_to :nivel_salario, foreign_key: :mvps_nivelsalario, primary_key: :ns_registro
|
11
|
+
belongs_to :local_trabalho, foreign_key: :mvps_localtrab, primary_key: :lctb_codigo
|
11
12
|
|
12
13
|
def liquido_total
|
13
14
|
self.rendimento_total - self.desconto_total
|
@@ -3,4 +3,6 @@ class Gestorh::Funcionario < Gestorh::GestorhRecord
|
|
3
3
|
|
4
4
|
has_many :movimento_acumulados, foreign_key: :mv_matricula, primary_key: :fn_matricula
|
5
5
|
has_many :folhas, through: :movimento_acumulados
|
6
|
+
has_many :ferias, foreign_key: :fe_matricula, primary_key: :fn_matricula, class_name: 'Gestorh::Ferias'
|
7
|
+
belongs_to :vinculo, foreign_key: :fn_vinculo
|
6
8
|
end
|
@@ -33,7 +33,7 @@ class Intranet::TjpiVinculo < Intranet::IntranetRecord
|
|
33
33
|
belongs_to :procurador, class_name: 'GlobalPrepessoafisica', foreign_key: :procurador_id
|
34
34
|
belongs_to :conta_bancaria, class_name: 'GlobalContabancaria', foreign_key: :contaBancaria_id
|
35
35
|
|
36
|
-
has_many :tjpi_previnculados, class_name: 'TjpiPrevinculado'
|
36
|
+
has_many :tjpi_previnculados, class_name: 'TjpiPrevinculado', foreign_key: :vinculoPrincipal_id
|
37
37
|
belongs_to :tjpi_previnculado, class_name: 'TjpiPrevinculado', foreign_key: :cadastro_id
|
38
38
|
|
39
39
|
has_many :tjpi_contrachequeagrupados, class_name: "TjpiContrachequeagrupado", foreign_key: :matricula, primary_key: :matricula
|
data/lib/sticutils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sticutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- app/models/gestorh.rb
|
69
69
|
- app/models/gestorh/banco.rb
|
70
70
|
- app/models/gestorh/classificacao_verba.rb
|
71
|
+
- app/models/gestorh/ferias.rb
|
71
72
|
- app/models/gestorh/folha.rb
|
72
73
|
- app/models/gestorh/folha_agrupada.rb
|
73
74
|
- app/models/gestorh/folha_agrupada_id_separado.rb
|
@@ -75,6 +76,7 @@ files:
|
|
75
76
|
- app/models/gestorh/funcao.rb
|
76
77
|
- app/models/gestorh/funcionario.rb
|
77
78
|
- app/models/gestorh/gestorh_record.rb
|
79
|
+
- app/models/gestorh/local_trabalho.rb
|
78
80
|
- app/models/gestorh/lotacao.rb
|
79
81
|
- app/models/gestorh/movimento.rb
|
80
82
|
- app/models/gestorh/movimento_acumulado.rb
|