Hi every one.
I have created an API to create sales invoice on ERPNext
I had on ERPNext the below complanies
1- Main Company (is the parent)
2- UAE Company (is a child for Main Company)
3- KSA Company (is a child for Main Company)
How can I send the sales invoice to the childes companies not to the parent?