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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40acdd41da3e6ce18afad2fae3733e99d2c539c4dd845a272830f0fb29f5aeb6
4
- data.tar.gz: f66502769017b85070d10d2647905d8c225d5824afcefc88aa2dbbed04022fb3
3
+ metadata.gz: 6bc7aa5003dee086839112b36be6a6e86e2fc930fd9b196d1b743423785587e0
4
+ data.tar.gz: c974b43294fdbd4df9fcc966cb3c640b71f14bcc81e66032656e815689d412e1
5
5
  SHA512:
6
- metadata.gz: 8a3cbb843827e20e182dbedb13ac50dfd39471fe490cbafe727c9646163e9fd628331881241aa97f9b0b9ae89406565b4c8c6bbf18d37bacdc79afe52faba7a8
7
- data.tar.gz: 2cb50c52b31dc35705f86057634b7c5a21efa3699e7ff39826bb4364276b07484085354689a375fec13017d734d445be6930877f56ca44d0943ea3299279b533
6
+ metadata.gz: afe49290226acbdb6bb8de5a248448f88f340a1779256006d250962edb4ec75a8749b427973bc9b7b0a1678b3b073879624c7f26079ae5d941770d00f53827e6
7
+ data.tar.gz: 8731dd1ce2000af592e76ae7c25a42a5cf27c8bf4d6272d8c6d8dfa603567c127772fe6107daa62500f0cd091ff829bd3e75a235999d3b9267c63e11b739f941
@@ -0,0 +1,4 @@
1
+ class Gestorh::Ferias < Gestorh::GestorhRecord
2
+ self.table_name = 'gestor_rh.cdferias'
3
+ belongs_to :funcionario, foreign_key: :fe_matricula, primary_key: :fn_matricula
4
+ end
@@ -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
@@ -0,0 +1,3 @@
1
+ class Gestorh::LocalTrabalho < Gestorh::GestorhRecord
2
+ self.table_name = 'gestor_rh.cdlocaistrabalho'
3
+ end
@@ -1,3 +1,5 @@
1
1
  class Gestorh::Vinculo < Gestorh::GestorhRecord
2
2
  self.table_name = 'gestor_rh.cdvinculo'
3
+
4
+ has_many :funcionarios, foreign_key: :fn_vinculo
3
5
  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
@@ -1,3 +1,3 @@
1
1
  module Sticutils
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.8"
3
3
  end
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.3
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: 2020-11-19 00:00:00.000000000 Z
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