Customer generates a new order from their app. Then on my end I can edit their order and add items & create their total amount owing.
Where I’m at:
Customer creates order
data get’s sent to a sheet called, “Orders”
I created a sheet of possible items & their price
I displayed the price sheet on GlidePage & created an action to add item name/price/order# to a sheet called Transactions
Created a relation between “Orders” sheet & “Transactions” sheet, where Orders have MANY transactions
On the front-end when I click on a specific order it will show me a breakdown of all the transactions, however it won’t group the transactions with the same name. Say order #34 bought 4 apples. It’ll show 4 different transactions with 4 lines.
What should happen → is there a way to show a summary of the order? Where it will group the same name items, so instead of it being 4 lines of the same item, it’ll show 1 line saying “Apples x 4 = total price”
I tried doing this and am having a lot of trouble. My gut tells me I’m supposed to create another sheet that summarizes each order? Idk
Summary of Sheets:
Sorry this was long-winded, been stuck on this for a while now. Not looking for a detailed explanation, maybe an overall picture of what’s supposed to happen, that would be great <3
I think you could create a template column in your Transactions table that concatenates the order number and the item. Then create a multiple relation that matches that column to itself. You can then use a rollup through that relation to get an item count. And finally another template column to join the item description and item count.