We have intercompany sales flow. The flow is like, sales order will be created and for that a delivery will be created and an intercompany invoice will be created at first and after that a proforma invoice will be created with reference to the existing delivery.When we are creating the proforma invoice manually, we are able to create the proforma invoice without any problem. But when we are trying to create an proforma invoice through background job, we are facing the problem. When we checked in the billing due list also we are not able to find the pending documents for billing.
When we checked the delivery,we were able to see the status as not relevant for billing. But in the itemcategory definition, it is maintained as relevant for proforma invoice.
Can anyone help in finding out the reason why we are not able to create and invoice through back ground job.
Thanks in advance.