Invoice reference against an order

pcbleu
Mon, 11 Oct 2021 10:10:07 +0000

Hello

Check your sql command - you never use llx_facture and llx_commande
use this for example :
SELECT llx_facture.ref, llx_commande.ref FROM llx_facture
LEFT JOIN llx_element_element ON llx_element_element.fk_target = llx_facture.rowid
LEFT JOIN llx_commande on llx_element_element.fk_source = llx_commande.rowid

Good continuation

Read full topic