I have created 2 sales Orders in my Cuba application (docNo 52000002 & 52000003).
After I have created a Child document (the plan order 90000010) of Sales order 52000002, I am expecting the plan order record created will be displayed with the hierarchy relation with respective parent doc 52000002 but as you as see it is displayed standalone. On the other hand, the 3rd level records (planOrderLine in this example) is displayed as children record of 9000010 which is right though.
If I go to the database, I see the application is correctly updated the parent field though.
If I expand the relationship between L2 and L3 is good but there is no relationship between L1 and L2 displayed though it is evident that the database is ok.
Hi.
Could you please try to use TreeTable instead of TreeDataGrid and compare the results?
Also, we will be really appreciated if you send us a small sample project along with reproduction scenario that demonstrates the issue.
Hi Natalia
I tried with treeTable but has a similar behaviour.
Please find attached a sample app i have developed to let you explore further.
Here is what you do:
Create one sales order with one product (Say Mango Shake)
Go to menu “Supply Chain Plan Etos” where you will see one entry populated (I used SalesOrderLineEntityListener)
Stay in the same screen “Supply chain plan…” and click on “CREATE PLAN ORDER”. It will bring plan order creation Editor screen where you add 2 line items (Mango 2 units and milk 3.5 units) and save
You will see the create plan order is created but not under the SalesOrderLine but the independent row with its children lines Mango and mil.
Problem: Where is the issue showing SalesOrderLine as a parent for Plan orders?
Hi.
As I can see, during the creation of plan order the id of the entity selected in the table does not set as parent supply chain plain eto attribute.
Your project contains a lot of custom logic and code, so it is very hard to investigate the real problem. Try to debug PlanOrderEntityListener in order to find the problem.