Hello,
I cannot find how the invoices are linked to orders (or delivery notes) in database tables. I would expect to see a field on table llx_facture called for example fk_commande or fk_origin_line but there is not any column like this.
The only column I find that could make the link could be llx_facturedet.fk_origin_line but that is always NULL.
Do anyone know how are invoices linked to orders or delivery notes?
My version of Dolibarr 3.3.1
Thank you.