on 03-11-2011 8:46 PM
Olá Forum,
Preciso ler todos as duplicatas de uma nota e se foram pagas ou não, com a data de pagamento.
Utilizei o objeto Documents(Invoices) e Document_Installments (Tabela INV6) para ler as duplicatas, mas não estou conseguindo encontrar uma forma de fazer relação com os pagamentos.
Alguém poderia me dar alguma dica?
Agradeço,
Diego Rodrigo,
Para considerar as parcelas faça o vinculo com as colunas:
SELECT *
FROM ORCT a, RCT2 b, OINV c, INV6 d
WHERE a.DocNum = b.DocNum
AND b.InvType IN ('13','24')
AND b.DocEntry = d.DocEntry
AND c.DocEntry = d.DocEntry
AND b.InvType = d.ObjType
AND b.InstId = d.InstlmntID
e deve tratar cada tipo de recebimento se necessário, cartão, boleto, transferência, ...
Att,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olá,
Em relatório que precisei fazer fiz a referência com desta forma:
ORCT.DocEntry= OINV.ReceiptNum
pois ao gravar um contas a receber (ORCT) percebi que atualizou a coluna ReceiptNum da tablea OINV com o número do documento recebido.
Att,
Fabielle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.