[16.0][ADD] eng_reconcile_default_payment_filter: filtro de pagamentos pendentes sempre ativo #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resumo
Novo módulo que força o filtro "Outstanding Payments/Receipts" (Pagamentos/Recebimentos Pendentes) a ficar sempre ativo por padrão na tela de reconciliação bancária.
Causa raiz
O módulo
account_reconcile_oca_add_default_filtersusapartner_idcomo valor desearch_default_payment_asset_current, o que faz o filtro só ativar quando a linha do extrato tem parceiro definido. Sem parceiro, o filtro fica desativado e o usuário precisa ativá-lo manualmente.Solução
Herda a view de reconciliação e sobrescreve o contexto do campo
add_account_move_line_idpara quesearch_default_payment_asset_currentseja1(sempre ativo), independente de haver parceiro na linha. Os filtros de contas a pagar/receber continuam condicionados à presença do parceiro.