In the middle of trying figure out how to create a report that shows how many sales orders and total $ value of all sales orders created for a given month.
Now before you point me to any of the built in reports (e.g. Outstanding Sales orders / sales orders status etc..) let me mention that I'm looking for Booked Sales Orders, not outstanding.
In other words:
If the Sales order was created in Jan it's total value should be on the report. Even if it's shipped and/or invoiced (which built in reports don't show because their not sales orders anymore)
If S.O. is shipped and/or invoiced yet was created in Jan, it needs to show.
SO#-23443 Status-SalesOrder Total-$23,432
SO#-23435 Status-Shipped Total-$43,215
SO#-52443 Status-Invoiced Total-$34,232
Something like the above, don't need status, but might be a nice touch and easy once the other info is gathered.
If a user wanted to see Booked orders, they'd have to reference something like:
Sales Header/line tables for Outstanding Orders
Sales Shipment receipt Header/line tables for all other orders (shipped/invoiced)
Problem with above is that some orders in the shipment receipt tables might have been booked in Dec or previous and shipped in Jan. You wouldn't want to include these, so you'd probably have to archive the Sales Orders first (only work on information going forward obviously if this setting isn't on.), and then cross reference items in the sales shipment receipt tables with this archive information to ensure you only had entries that belonged in January's bookings.
One reading the report must understand that this information once reported each month may change as customers could cancel orders / change orders / may not be shipped till next month etc..., so it will definitely not match sales reports.
Anyways... I believe the term booked orders means orders "taken" that month regardless of their status after.
Any ideas about the following would be greatly appreciated.
I'll most likely just test the best scenario first with excel via odbc sql data, so any reference to the best tables to get this information from would be helpful.
I thought Item Ledger Entry Table at first, but it doesn't record prices and you'd have to cross-reference it with value postings? I think.
Shipment receipt line records unit price and item charge base amount (which is the extended price including discounts), so you could get all relevant information from there and sum the items with the same Order No_ (sales order no)
that's where I'm at right now with it. Biggest problem with this report is items booked in Dec shipped in Jan.
*This post is locked for comments