Hello everyone,
some time ago I asked how to find all unpayed invoices without system check run on Accpac 5.4 (means, CS0120 view and SQL queries are not yet available).
tuba2007 gives me a perfect hint - I need to run query
SELECT * FROM APOBL WHERE SWPAID = 0
using AP0025-APOBL view. That's was good and worked some time, but now I need to exclude from the list all invoices with the "pending" state - means A/P invoice has been posted and corresponding A/P payment is created, but not posted.
Unfortunately, query above gives me the list of all A/P invoices, including those which already have corresponding payments (they are just not yet posted).
Now to exclude those pending payments, I have to run second query over AP0033(APTCP) Applied Payments view, checking if payment with appropriate document number (IDINVC) already exists, but I'm not sure it's the most effective way.
Is there any better way to do it?
Just in case, previous question discussion was here:
Thank you,
Pavel
some time ago I asked how to find all unpayed invoices without system check run on Accpac 5.4 (means, CS0120 view and SQL queries are not yet available).
tuba2007 gives me a perfect hint - I need to run query
SELECT * FROM APOBL WHERE SWPAID = 0
using AP0025-APOBL view. That's was good and worked some time, but now I need to exclude from the list all invoices with the "pending" state - means A/P invoice has been posted and corresponding A/P payment is created, but not posted.
Unfortunately, query above gives me the list of all A/P invoices, including those which already have corresponding payments (they are just not yet posted).
Now to exclude those pending payments, I have to run second query over AP0033(APTCP) Applied Payments view, checking if payment with appropriate document number (IDINVC) already exists, but I'm not sure it's the most effective way.
Is there any better way to do it?
Just in case, previous question discussion was here:
Thank you,
Pavel