new fix Count of Stripe payment mode must take test/live into account

fix error message for if no stripe enabled 0b891d5e0c
This commit is contained in:
ptibogxiv 2020-02-05 12:04:27 +01:00 committed by GitHub
parent 0b891d5e0c
commit 94fd2b40c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,8 +207,8 @@ function societe_prepare_head(Societe $object)
$sql = "SELECT COUNT(n.rowid) as nb";
$sql .= " FROM ".MAIN_DB_PREFIX."societe_rib as n";
$sql .= " WHERE fk_soc = ".$object->id;
$sql .= " AND status = ".$servicestatus;
$sql .= " WHERE n.fk_soc = ".$object->id;
if (!empty($conf->stripe->enabled)) $sql .= " AND n.status = ".$servicestatus;
$resql = $db->query($sql);
if ($resql)