Fix filter on test/live mode for stripe card

This commit is contained in:
Laurent Destailleur 2018-05-17 15:13:16 +02:00
parent 1645c14e25
commit 4f6b0fead6

View File

@ -841,6 +841,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
$sql='SELECT rowid FROM '.MAIN_DB_PREFIX."societe_rib";
$sql.=" WHERE type in ('card', 'paypal')";
$sql.=" AND fk_soc = ".$object->id;
$sql.=" AND status = ".$servicestatus;
$resql = $db->query($sql);
if ($resql)