Update bonprelevement.class.php

This commit is contained in:
Laurent Destailleur 2023-02-24 18:06:08 +01:00 committed by GitHub
parent 10853b64ff
commit 829e818b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -813,7 +813,7 @@ class BonPrelevement extends CommonObject
$sql .= " AND f.total_ttc > 0";
$sql .= " AND pfd.ext_payment_id IS NULL";
if ($did > 0) {
$sql .= " AND pfd.rowid = '".$this->db->escape($did)."'";
$sql .= " AND pfd.rowid = ".((int) $did);
}
dol_syslog(__METHOD__."::Read invoices,", LOG_DEBUG);