after a bit of help, I successfully integrated supplier invoices through peppol, thanks a lot for that integration.
But now I stopped because I don’t know what will happen with suppliers for which I use purchases
Until now in tryton, my invoices were created and linked to a purchase order when confirming it, or when validating the relevant shipments (depends on the case). I then validated and posted them when receiving the original document from the supplier. (which was attached to the tryton invoice)
But now those invoices will be created in tryton by the peppol integration, so I have to stop the purchases from creating invoices.
And then how do I link those peppol created invoices to my incoming shipments and purchase orders ?
The idea is to set to “Manual” the purchase invoice method for suppliers that send electronic invoices.
The edocument_ubl module will try to find the corresponding purchase line based on the OrderRerence in the electronic invoice and the product based on the Item. If it found a purchase line, it will set it as origin for the invoice line and thus creating a link. If it does not find, you must make the link yourself before posting the invoice.
Also if for any reason you forget to set the invoice method to manual, you can still delete the extra invoice lines. Tryton will not recreate them if you have already linked enough invoice line quantities to the purchase.