View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Factur-X: bug on getting BillLines with filter criteria of parent BillID only - ProjeQtOr
 

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

More
26 Mar 2026 14:28 #1 by kolonel
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!
 

Please Log in or Create an account to join the conversation.

More
27 Mar 2026 16:30 #2 by babynus
Thanks for pointing out the issue

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

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.