Closed equilibrium999 closed 6 years ago
Hello @equilibrium999
To my understanding, you would like to do some pre-processing before the sales order is created. in espm we have used apache olingo for the oData/REST services. So, the SalesOrder creation is exposed via oData and the creation of the same is triggered in the UI using ajax.
Line 334
The actual creation of the Sales Order is happening in https://github.com/SAP/cloud-espm-v2/blob/master/espm-cloud-jpa/src/main/java/com/sap/espm/model/SalesOrderHeader.java
you can use the @PrePersist tag to do some processing.
Hope that this helps
closing this ticket for now
Hi SAP, I'm not sure if it is the right place to ask. And this is not an issue. I've followed this repo and found it very informative and interesting. Just one more thing is I'm curious about how to extend CRUD operations. For example, I need to validate values passed to backend before creating a sales order. How can I implement that?
Regards,
Tri