Advertisement
Advertisement
| 05.12.2008 at 10:19AM PDT, ID: 23395247 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
Select 'RET' as type, entry_date, Amount, Description, '' as Status from Client0.dbo.invoice_retainers where Client_id = 1 UNION ALL Select 'INV' as type, invoice_date as entry_date, cpTotalDue as Amount, Invoice_Number as Description, status from Client0.dbo.invoice where Bill_To_Client_Id = 1 UNION ALL Select 'PYMT' as type, payment_date as entry_date, Amount, Reference as description, '' as status from Client0.dbo.invoice_payment where Client_id = 1 Order by entry_date desc |