Two repeaters in one resource?
Hi! Please advise me on how to approach such an issue:
I have tables: items (id, name), sets (id, name, item_id), orders (id, name), order_items (id, order_id, item_id, set_id default NULL).
As for the order_items structure, I'm not quite sure.
What I want to achieve is that on the edit order page, I have the option to add a single item or a set of items (of my choice). This is because an order can consist of both single items and sets. Of course, later on I will need a report of what all the items the order consisted of (both single items and items from sets).
I am wondering how to build resource Orders to allow the addition of both single elements and sets? Using the built-in tools (Repeater divided into tabs?) or will I need some sort of custom page?
I have tables: items (id, name), sets (id, name, item_id), orders (id, name), order_items (id, order_id, item_id, set_id default NULL).
As for the order_items structure, I'm not quite sure.
What I want to achieve is that on the edit order page, I have the option to add a single item or a set of items (of my choice). This is because an order can consist of both single items and sets. Of course, later on I will need a report of what all the items the order consisted of (both single items and items from sets).
I am wondering how to build resource Orders to allow the addition of both single elements and sets? Using the built-in tools (Repeater divided into tabs?) or will I need some sort of custom page?