Sum Required quantity by partnum if in the same ASM and OPR to fix phantom BoM results

Im working with part methods that have many phantom BOMs.
So the sub-assemblies could have the same raw materials and when the top sub-assembly explodes and the children show as mtl on the job, the same part number will show on the job mtl multiple times at different quantities as different mtl seq numbers.

i would like to be able to sum the required quantity and only show on one mtl sequence if the parts are in the same Assembly and Related Operation.
i dont know why the system doesnt do this automatically. (Hint hint …Epicor 10.2.500 maybe?)
im thinking this would be a BPM that fires when the job is firmed.
any one ever created something of this sort?