Notifications
Retirer tout
Submit issues
2
Posts
2
Utilisateurs
0
Reactions
245
Vu
Début du sujet
Hi,
I found a bug on version 12.5.0, with the FacturX module:
File: model/FacturX.php
Line 62
Modify
$linesList = $BillLine->getSqlElementsFromCriteria(['refId' => $billId]);
by
$linesList = $BillLine->getSqlElementsFromCriteria(['refId' => $billId,'refType'=>get_class($bill)]);
The function gets BillLines from a BillID, whatever its parent's class.
I do have duplicates with same BillID, however one is a Bill, the other ones are from a ProviderBill.
Thanks!
Posté : 26/03/2026 4:28 pm
Thanks for pointing out the issue
Many more thanks for the fix.
Will be included in next patch
Posté : 27/03/2026 6:30 pm