I need to solve a packing scenario. where items are packing into carts. there is small packets called standard bags which contains item in small quantity. which have a barcode label. In the packing section these standard bags are scanned to get item and quantity. and insert it into cart. Select a cart and add these bag into the cart. the current cart / selected cart should display the vacant space in the page. There is possibility of a cart contain multiple items and single item can insert into multiple carts.
For this scenario, how can i connect the item and cart ? Is it ok to use Page doctype in frappe and frappe - data table to solve the problem ?