AP - Status NFF

GL, AP, AR, RI, Cash, Assets, etc
Responder
archive
Rank: OraSauro
Rank: OraSauro
Mensagens: 595
Registrado em: Sex, 02 Dez 2016 7:31 am

alguém saberia me informar em que tabela fica armazenado o status da NFF do AP?

Desde já agradeço
archive
Rank: OraSauro
Rank: OraSauro
Mensagens: 595
Registrado em: Sex, 02 Dez 2016 7:31 am

Até onde sei, este dado não fica armazenado na tabela. Ele é resultado da combinação das flags match_status_flag da tabela ap_invoice_distributions_all.
A apresentação no form é resultado de uma busca utilizando a função: get_approval_status (ap_invoices_utility_pkg.get_approval_status), que tem os seguintes parâmetros:

invoice_id,
invoice_amount,
payment_status_flag,
invoice_type_lookup_code
archive
Rank: OraSauro
Rank: OraSauro
Mensagens: 595
Registrado em: Sex, 02 Dez 2016 7:31 am

Qual status? Do pagamento da nota ? Se sim .. ap_invoices_all.payment_status_flag
archive
Rank: OraSauro
Rank: OraSauro
Mensagens: 595
Registrado em: Sex, 02 Dez 2016 7:31 am

Obrigado!

Mas não é o status de pagamento, e sim o que diz se a nota esta Validada.
archive
Rank: OraSauro
Rank: OraSauro
Mensagens: 595
Registrado em: Sex, 02 Dez 2016 7:31 am

Não me lembro muito bem qual das views recupera isso, mas tenta nas apps.ap_invoices ou apps.ap_invoices_v.
Se não me engano a view efetua uma query para o status.
archive
Rank: OraSauro
Rank: OraSauro
Mensagens: 595
Registrado em: Sex, 02 Dez 2016 7:31 am

Veja se isso ajuda.
Invoice distributions are validated individually and the status is stored at the invoice distribution level. This status is stored in AP_INVOICE_DISTRIBUTIONS_ALL.MATCH_STATUS_FLAG.
Valid values for the column are:

A - Validated (it used to be called Approved)
N or NULL - Never validated
T - Tested but not validated

The invoice header form derives the invoice validation status based on the following:
'Validated'
- If all of the invoice distributions have a MATCH_STATUS_FLAG = 'A'
'Never Validated'
- If all of the invoice distributions have a MATCH_STATUS_FLAG = null or 'N'
'Needs Revalidation'
- If there are any rows in AP_HOLDS that do not have a release code.
- If any of the invoice distributions have a MATCH_STATUS_FLAG = 'T'.
- If the invoice distributions have MATCH_STATUS_FLAG values = 'N', null and 'A' (mixed).
Responder
  • Informação
  • Quem está online

    Usuários navegando neste fórum: Nenhum usuário registrado e 14 visitantes