Forum

Factur-X: bug on ge...
 
Notifications
Retirer tout

Factur-X: bug on getting BillLines with filter criteria of parent BillID only

2 Posts
2 Utilisateurs
0 Reactions
245 Vu
 CK
(@kolonel)
Posts: 1
New Member
Début du sujet
 
[#10088]

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
(@babynus)
Posts: 14952
Membre Admin
 

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
Share:
Retour en haut