I've been racking my brain for the past three days, and I have yet to figure it out.
I am trying to figure out how to make a SELECT query to grab info from the database to not only break down my daily sales into registers, but then subsequently, into departments.
A few things I have figured out:
The DailySales.TypeID = 3 is the Department ID sales total
and TypeID = 4 is the Register ID sales total.
So, I'm thinking, DailySales is not where I should be looking, as it doesn't break it down any other way.
But considering the X and Z reports at the end of the day do break down the department sales (just for that register), I think it should be possible.
Thanks in advance,
- Scott
Edit: This is for a custom report I am trying to build. I am completely comfortable writing the code, just getting a headache looking at all the tables and coming up short.
I am trying to figure out how to make a SELECT query to grab info from the database to not only break down my daily sales into registers, but then subsequently, into departments.
A few things I have figured out:
The DailySales.TypeID = 3 is the Department ID sales total
and TypeID = 4 is the Register ID sales total.
So, I'm thinking, DailySales is not where I should be looking, as it doesn't break it down any other way.
But considering the X and Z reports at the end of the day do break down the department sales (just for that register), I think it should be possible.
Thanks in advance,
- Scott
Edit: This is for a custom report I am trying to build. I am completely comfortable writing the code, just getting a headache looking at all the tables and coming up short.
Last edited: