I'm designed an orders report for our salespeople, which works well except I need to be able to apply a filter for salesperson. Easy enough to grab this from the sales invoice line table, but my problem is that in posted sales cr memos, this does not exist. Without it what I get is every credit for the time range specified instead of only the credits for that sales person's customers.
I thought that the lines in posted sales cr memo were pulled in from the sales line tables when the credit is created, and salesperson is a listed field in that table per Jet. But it blows up. Thought maybe I could tie it back to the original invoice number instead, but in our ERP system the invoice # is in a description field!! That's right,.. sigh,.. And yet the credit memo pulls the line item from sales invoice line, which will populate a salesperson code when your report on it for an invoice.
Any ideas, folks? Is there a better table to use to report on credits to a sales account?