Creating multiple items unnecessarily because of BOM levels

Hi,

When I creating items that contain the same raw materials in their composition, for part of each item, in addition to different raw materials, such as:

Item A - 3 units
Subitem A - 15 units
Subitem C - 10 units
Subitem D - 25 units

Item B - 5 units
Subitem A - 20 units
Subitem Z - 15 units
Subitem W - 12 units

The system creates a list as follows:

Subitem A - 15 units
Subitem A - 20 units
Subitem C - 10 units
Subitem D - 25 units
Subitem Z - 15 units
Subitem W - 12 units
Item A - 3 units
Item B - 5 units

I’m producing solutions, so, it’s not necessary, and counterproductive to do the solutions this way.

Can somebody help with this issue? Is that a config way to change it, so?

I’ve opened an issue on GitHub: Creating multiple items unnecessarily because of BOM levels · Issue #27371 · frappe/erpnext · GitHub.