apply fix that has been committed to trunk in http://bazaar.launchpad.net/~openpetracore/openpetraorg/trunkhosted/revision/2225#csharp/ICT/Petra/Server/lib/MFinance/queries/ReportFinance.cs