sticutils 2.1.1 → 2.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81652f5712e52d72d71776d3442576f0e84af8f7aaf957f852e9bcb57315aff6
4
- data.tar.gz: e72320b98d8f435903428baa9257578ab4e9b575d9ed9bc145a2f3330cf8c71a
3
+ metadata.gz: cf3085d741f4692de92318de22d52c924e2b50a41430eb17aeda82d823c9b846
4
+ data.tar.gz: 16d156a824a25061b2ae5a19fdaacbc8f336d1fdd684470fa44f1d7f2e80fc2a
5
5
  SHA512:
6
- metadata.gz: fc06929876557da7694c05c7444c7f63a463185949a6f0e5a238290180bbf14423bdcc8e5cc4612fd695655dee4bad973d21ebb21cc39f6899261e76ec10ce01
7
- data.tar.gz: 49e1af6d082cfb2557509b5199b8880fae8e84e25ff9bff1e6654bce76976298864f359e849b759c842149859221e3b5386d4ee988d0b2fbd0f1e9846ca7158e
6
+ metadata.gz: f6f7ca2fec3f971df0dec44bda1fe55e7f2feb6b9d63fdfb6815308bd0154eb31a7e3f96d00a7ccfd9d51f2991556f1d9db5daf361bffda7ea078ae096ae05ea
7
+ data.tar.gz: e59a7fe117ef52b5b42b52a9158ed698656ef4205413dd4af964d62bac676b7c2f8f0d37f370a1dcd246cf7c0a5df014d7f51a90e43258d83c04089c22316f1a
@@ -18,17 +18,25 @@ class Gestorh::FolhaAgrupadaIdSeparado < Gestorh::GestorhRecord
18
18
  def eventos_e_valores
19
19
  # .where.not('cdclassificacaoverba.cv_classificacao': 'DESCONTO_PREVIDENCIA_PUBLICA_IAPEP')
20
20
  Gestorh::MovimentoAcumulado.where(mv_regfolha: folhas, mv_matricula: matricula)
21
+ # CDVERBA LEFT JOIN CDTRU: verbas sem TRU (vb_tru nulo) devem permanecer
22
+ # na lista com codigo_tru/nome_tru nulos. O :tru entra como LEFT OUTER JOIN,
23
+ # enquanto :classificacao_verba continua INNER.
21
24
  .joins(verba: :classificacao_verba)
25
+ .left_outer_joins(verba: :tru)
22
26
  .select("mv_regfolha as folha_id",
23
27
  "mv_verba as codigo_evento",
28
+ "tru_codigo as codigo_tru",
24
29
  "mv_referencia as fator",
25
30
  "cdverba.vb_nome as nome_evento",
31
+ "tru_nome as nome_tru",
26
32
  "mv_dc as status",
27
33
  "mv_total as valor",
28
34
  "cdclassificacaoverba.cv_classificacao as tipo",
29
35
  "mv_base as mv_base",
30
36
  "mv_competencia as competencia_inicio",
31
- "mv_competencia_final as competencia_fim")
37
+ "mv_competencia_final as competencia_fim,
38
+ mv_mesinicio as mes_inicio,
39
+ mv_mesfinal as mes_fim")
32
40
  .to_a
33
41
  .uniq { |x| [x.codigo_evento, x.status, x.valor] } # uniq temporario para remover verbas com 2 classificacoes
34
42
  end
@@ -0,0 +1,5 @@
1
+ class Gestorh::Tru < Gestorh::GestorhRecord
2
+ self.table_name = 'gestor_rh.cdtru'
3
+
4
+ has_many :verbas, foreign_key: :vb_tru, primary_key: :tru_registro
5
+ end
@@ -2,4 +2,5 @@ class Gestorh::Verba < Gestorh::GestorhRecord
2
2
  self.table_name = 'gestor_rh.cdverba'
3
3
 
4
4
  has_one :classificacao_verba, foreign_key: :cv_verba, primary_key: :vb_codigo
5
+ belongs_to :tru, foreign_key: :vb_tru, primary_key: :tru_registro
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module Sticutils
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -82,6 +82,7 @@ files:
82
82
  - app/models/gestorh/movimento_acumulado.rb
83
83
  - app/models/gestorh/movimento_posicao.rb
84
84
  - app/models/gestorh/nivel_salario.rb
85
+ - app/models/gestorh/tru.rb
85
86
  - app/models/gestorh/verba.rb
86
87
  - app/models/gestorh/vinculo.rb
87
88
  - app/models/intranet.rb
@@ -274,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
275
  - !ruby/object:Gem::Version
275
276
  version: '0'
276
277
  requirements: []
277
- rubygems_version: 3.6.5
278
+ rubygems_version: 3.6.7
278
279
  specification_version: 4
279
280
  summary: Utilidades para aplicações rails da STIC
280
281
  test_files: []