If this was me, I'd have the parent form take the input.
As each scan is accepted, do a lookup based on parent ID and the looked up product ID in your child record.
If the lookup succeeds, it increments the qty by one and updates the record. If it fails it creates the record with a qty of 1...