Intercompany purchase invoice was not created automatically

Hi folks Slight smile

We have the problem that in certain cases an IC purchase invoice is not automatically created for a customer when the corresponding IC sales invoice is released.

Most of the time it works but not always. 

We have set up the intercompany parameters as follows:

The customer is a intercompany customer. We not see something special on this sales invoice.

What are the standard x3 requirements in order to automatically create a purchase invoice?

In the logs we haven't seen an error.

In the logs it says that the sales invoice was released. It not come to the logs of our own custom entry point YEPTRTACHFAC2.

What we try know is copying the standard TRTACHFAC2.src script in the used x3 folder and write many logs. Like this we can maybe find the cause of the problem when once again no IC purchase invoice was automatically created.

Any ideas why the automatic purchase invoice was not created here?

Best regards

Bense

  • Hi,

    At my company we have run into this issue without custom code. 

    I don't have the answer yet, but one of the things I was going research is what parameters are used to decide if the IC Purchase invoice is to be created or not.

  • 0 in reply to Patricia Daloisio

    Hello Patricia  

    Thank you very much for your reply.

    I will check again the parameters. I suspect something must be different with the IC sales invoice because most of the time it works with the automatic IC purchase invoice generation.

    Kind regards

    Bense

  • 0

    When I call the method GENRE_PIH directly as in the standard script TRTACHFAC2.src it creates the IC purchase invoice.

    There are no errors in the logs. It confirms that the IC purchase invoice was created.

    When I search with the original invoice number I find the IC purchase invoice.

    After validation of a sales invoice it can not be changed. So it should not be the case that the sales invoice was changed after the validation and therefore now it works and before not.

    Does anyone have an idea why it didn't work before but when called directly with the function it works? I think GENRE_PIH from TRTACHFAC2.src is the correct function for testing.