Skip to content

Commit

Permalink
Merge pull request #1346 from prefeiturasp/feature/71609-admin-despes…
Browse files Browse the repository at this point in the history
…as-filtros

feat(71609) Cria novos filtros no admin de despesas
  • Loading branch information
alcfernandes authored Aug 16, 2022
2 parents 9072f0a + 881dc1f commit 35d0e9f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 3 additions & 0 deletions hotfixes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.32.7 - 16/08/2022 - Hotfix - Soluções de bugs urgentes durante a sprint 47
* (71609) - Inclui novos filtros no Admin de Despesas

### 1.32.6 - 05/08/2022 - Hotfix - Soluções de bugs urgentes durante a sprint 47
* (71372) - Corrige cálculo do campo outros créditos no concolidado DRE

Expand Down
2 changes: 1 addition & 1 deletion sme_ptrf_apps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.32.6"
__version__ = "1.32.7"

__version_info__ = tuple(
[
Expand Down
22 changes: 20 additions & 2 deletions sme_ptrf_apps/despesas/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,26 @@ class DespesaAdmin(admin.ModelAdmin):
'associacao', 'retem_imposto')
ordering = ('-data_documento',)
search_fields = (
'numero_documento', 'nome_fornecedor', 'documento_transacao', 'associacao__nome', 'associacao__unidade__codigo_eol')
list_filter = ('status', 'associacao')
'numero_documento',
'nome_fornecedor',
'documento_transacao',
'associacao__nome',
'associacao__unidade__codigo_eol'
)
list_filter = (
'associacao',
'associacao__unidade__dre',
'associacao__unidade__tipo_unidade',
('data_documento', DateRangeFilter),
('data_transacao', DateRangeFilter),
'status',
'nome_fornecedor',
'tipo_documento',
'tipo_transacao',
'eh_despesa_sem_comprovacao_fiscal',
'eh_despesa_reconhecida_pela_associacao',
'retem_imposto',
)
inlines = [RateioDespesaInLine, ]
readonly_fields = ('uuid', 'id')
filter_horizontal = ('despesas_impostos', 'motivos_pagamento_antecipado')
Expand Down

0 comments on commit 35d0e9f

Please sign in to comment.