contratFacturesOriginales batch

When the management of PDF originals is enabled for customer invoices in General Setup > Documents > Manage original PDF by document type, an original document for each customer invoice is generated during its booking.

The contratFacturesOriginales is used to add original documents of booked invoices as linked documents on related customer contracts, when those contracts are entered in the Customer contract field of invoice lines. Thus, the invoice originals will be available from the Linked documents tab of the related contracts.