Fix debug sepa module

This commit is contained in:
Laurent Destailleur
2020-06-14 21:46:32 +02:00
parent abb8cd260f
commit 2d5c35b12a
7 changed files with 42 additions and 6 deletions

View File

@@ -62,6 +62,7 @@ function facture_prepare_head($object)
$sql = "SELECT COUNT(pfd.rowid) as nb";
$sql .= " FROM ".MAIN_DB_PREFIX."prelevement_facture_demande as pfd";
$sql .= " WHERE pfd.fk_facture = ".$object->id;
$sql .= " AND pfd.ext_payment_id IS NULL";
$resql = $db->query($sql);
if ($resql)
{