I have a report that details each invoice and cost for each job. The problem is that 1 job may have more than 1 invoice or credit memo.
No problem, I group by JobID, then list all invoices for that job. The problem I'm having is when there are multiple invoices or credit memo for 1 job. It reports the costing as many as there are invoices or credit memos.
Eg. Job ABC, Invoice 12345 - $200, expense $50
Job ABC, Invoice 33345 - $150, expense $50 (should be $0)
The total revenue for Job ABC should be $350 with $50 of expenses netting a profit of $300.
1 other thing: this report must be sorted by the invoice date. Some jobs may start 3 months back but is not invoiced until today. To match the financials, this report must be listed by invoice date range, not job date range.
No problem, I group by JobID, then list all invoices for that job. The problem I'm having is when there are multiple invoices or credit memo for 1 job. It reports the costing as many as there are invoices or credit memos.
Eg. Job ABC, Invoice 12345 - $200, expense $50
Job ABC, Invoice 33345 - $150, expense $50 (should be $0)
The total revenue for Job ABC should be $350 with $50 of expenses netting a profit of $300.
1 other thing: this report must be sorted by the invoice date. Some jobs may start 3 months back but is not invoiced until today. To match the financials, this report must be listed by invoice date range, not job date range.