Correction selection clé tva dans bdd

This commit is contained in:
Michael RICOIS 2015-07-22 11:47:12 +00:00
parent a73f9c7b05
commit 5f42aeb845

View File

@ -39,7 +39,7 @@ class MTva
return false; return false;
} }
$info = $this->iDb->select('sdv1.siren_tva', "cle, DATE_FORMAT(dateMod,'%Y%m%d') as DateMAJ", "siren=$siren", false, MYSQL_ASSOC); $info = $this->iDb->select('sdv1.siren_tva', "LPAD(cle,2,0) AS cle, DATE_FORMAT(dateMod,'%Y%m%d') as DateMAJ", "siren=$siren", false, MYSQL_ASSOC);
$tab=$info[0]; $tab=$info[0];
if (count($tab)>0) { if (count($tab)>0) {
//sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "classMTva sur $siren en cache", print_r($tab, true)); //sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "classMTva sur $siren en cache", print_r($tab, true));