2
0
forked from Wavyzz/dolibarr

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

This commit is contained in:
Laurent Destailleur
2020-02-04 19:33:20 +01:00
parent 0b45ceaf92
commit bc19f72306

View File

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