I'm trying to go deep in the troubleshooting and after so much debug I'm not able to undestand how the SalesOrder/SalesLine are being created.
I put some breakpoints in the SalesOrder/SalesLine insert and update method, in the AOSValidateInsert and AOSValidateUpdate and also in the write method but they have never been hitten.
I think that the process comes in the RetailTransactionServiceOrders class in the method called createOrUpdateRetailOrderHeader in which create a map, the RetailOrderHeaderMap. Maybe when this map is inserted the process create the SalesOrder row in the SalesTable.
Has anyone faced the same issue?
Could someone explain me how this process works?
Thank you for you time