Sales receipt

Hi everyone! I have clothing store app for me and my sellers with inventory, and something like cash register. Store is offline. So when they sell clothes they scan barcode via glideapp scanner. But sometimes there are more than one item.

My question is when my worker scans for example 3 items. I want to have list of only 3 items that he had scanned right now and calculated total for that 3 items.

I think algorithm is like
(taps open form button > creates a row with a receipt number > opens a form filling screen with a current receipt number > every scanned item gets same receipt number for each item > inline list is filtred to show items according to the generated receipt number > and total is calculated also according to the current receipt)

Maybe this is wrong. But anyway i need a help with creating something like this. I will include a screen with a result im loking to