|
|

楼主 |
发表于 2006/9/12 14:19:33
|
显示全部楼层
回复 #1 onnet168 的帖子
It seems ap_invoices_all is enough (you don't need the payment and invoice distribution tables).
应付: base_amount or invoice_amount
已付: amount_paid or payment_amount_total
未付: This will be a calculated amount, which is 应付 - 已付
Of course, you can use some payment flag like payment_status_flag to check the payment status.
If you will provide a supplier name as a parameter, then you have a condition like "vendor_id = xxx", or if you want to list all suppliers, then you can "order by vendor_id".
You will provide a start and an end dates to screen out invoices outside the date range.
Create a simple query and play it with your data. When you get the result you are expecting, take a detailed look at your query to see if there is anything else you want to modify/enhance.
Of course, your result should be an Oracle report. After you get the query, creating a report based on the query you have should be easy.
chen64683
甲骨文三段 |
|