I'd like to have a grid showing all "Staff" accounts, their sales for the quarter-to-date before staff discounts, and then after staff discounts. I would also want 2 columns showing year-to-date before/after discount sales totals. There are 3 distinct discount line items (eg, Staff 5%, sStaff 10% and Staff 15%) that would apply. No other discounts would need to be separated out. The grid would thus have 5 columns. Oh, and I'm fine updating the grid using actions tied to a button. And I assume that I could just use the "Subtotal" field from the "Invoice" table to represent the sales-after-discount figures.
So how would I structure this? Would I make a screen based on the InvoiceLine table? Insert a detached grid based on the Customer table? Assign actions to a button that loop through the invoice line table and subtotal items, except the staff discount ones? Do I need to insert a new column in the InvoiceLine table called "SubtotalBeforeDiscount", or something like that?
Some advice on the structure/framework would be much appreciated.
Thanks