Files
dolibarr/htdocs
Alexandre Janniaux b9419a869c purchasesjournal: fix empty IN () SQL request
`WHERE xx IN ()` is not allowed in PostgreSQL queries, and result in the
following fatal error:

	GROUP BY fk_facture_fourn
	    33 DoliDBPgsql::query SQL Error message: ERROR:  42601: syntax error at or near ")"
	LINE 10:  AND fk_facture_fourn IN ()
                                           ^

We can check whether we have valid invoices before running the query,
since the query will only check whether the invoices are complete or
not.

It also fixes the following error on the development PHP output.

	Fatal error: Uncaught TypeError: pg_num_rows(): Argument #1
	($result) must be of type PgSql\Result, bool given in
	/var/www/html/core/db/pgsql.class.php:654 Stack trace: #0
	/var/www/html/core/db/pgsql.class.php(654): pg_num_rows(false) #1
	/var/www/html/accountancy/journal/purchasesjournal.php(418):
	DoliDBPgsql->num_rows(false) #2 {main} thrown in
	/var/www/html/core/db/pgsql.class.php on line 654

Fixes #32374
2025-01-08 14:42:09 +01:00
..
2025-01-07 11:44:59 +01:00
2025-01-06 18:27:30 +01:00
2024-12-14 13:32:42 +01:00
2025-01-05 17:09:38 +01:00
2024-12-12 21:06:51 +01:00
2024-12-30 11:43:38 +01:00
2024-12-30 03:14:20 +01:00
2025-01-05 18:34:01 +01:00
2024-12-18 12:21:54 +01:00
2025-01-05 13:53:16 +01:00
2024-12-30 16:59:16 +01:00
2024-12-30 03:26:15 +01:00
2024-12-31 16:25:57 +01:00
fix
2024-12-09 16:34:26 +01:00
2025-01-07 11:24:01 +01:00
2024-12-11 21:03:15 +01:00
2025-01-05 18:34:01 +01:00
2025-01-05 18:34:01 +01:00
2025-01-05 18:34:01 +01:00
2024-12-31 16:25:57 +01:00
2025-01-07 10:43:45 +01:00
2025-01-03 16:09:52 +01:00
2024-12-09 11:08:49 +01:00
2025-01-07 14:02:53 +01:00
2024-12-13 18:11:05 +01:00
2025-01-05 16:14:21 +01:00
2024-12-01 23:15:27 +01:00