Error in the process of Importing products - Window ‘Discounts and promotions’. When creating a discount/promotion in a ‘child’ organisation of another one (which is associated to ‘x’ product) it does not find the product when executing the process. There is a hierarchy problem in the reading.
Steps to reproduce the error
1- Create a product associated with a parent organisation of others
2 - Create a discount for a child organisation of the one associated with the product created.
3 - Clicking on the ‘Product’ tab displays the process to import product. Execute it by loading a .csv/txt file with the value of the product created.
4 - The error will be displayed
When creating a discount/promotion in a ‘child’ organisation of another (which is associated with ‘x’ product) find the product when executing the process.
Error's description
Error in the process of Importing products - Window ‘Discounts and promotions’. When creating a discount/promotion in a ‘child’ organisation of another one (which is associated to ‘x’ product) it does not find the product when executing the process. There is a hierarchy problem in the reading.
Steps to reproduce the error
1- Create a product associated with a parent organisation of others
2 - Create a discount for a child organisation of the one associated with the product created.
3 - Clicking on the ‘Product’ tab displays the process to import product. Execute it by loading a .csv/txt file with the value of the product created.
4 - The error will be displayed
![image](https://github.com/etendosoftware/etendo_core/assets/143511686/25750e54-899a-4f7e-b8d9-bd0730a174ab)
Attached video: Etendo - Modificación de precios - test....webm
Expected behavior
When creating a discount/promotion in a ‘child’ organisation of another (which is associated with ‘x’ product) find the product when executing the process.
Affected Version
Etendo Core: 24.1.7
Solution Design (optional)
Other test cases
Given: When: Then: