Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Factur-X: bug on ge...
 
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
294 Views
 CK
(@kolonel)
Posts: 1
New Member
Topic starter
 
[#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!
 


 
Posted : 26 Mar 2026 16H28
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Thanks for pointing out the issue

Many more thanks for the fix.
Will be included in next patch


 
Posted : 27 Mar 2026 18H30
Share:

Scroll to Top