Search ledger: filter on paid operation fails for some operations

This commit is contained in:
sparkyx 2025-07-09 13:47:23 +02:00
parent 41025501f0
commit 98f9d45b4d

View file

@ -658,7 +658,7 @@ class Acc_Ledger_Search
$fil_paid="";
break;
case "paid":
$fil_paid=$and."(jr_rapt is not null or jr_rapt = 'paid') and jr_valid = true ";
$fil_paid=$and."(coalesce(jr_rapt,'') != '' or jr_rapt = 'paid') and jr_valid = true ";
$and=" and ";
break;
default: