MTva : formattage clé

This commit is contained in:
Michael RICOIS 2015-08-04 14:24:26 +00:00
parent 5c6e1f05c7
commit 87f48e2c70

View File

@ -17,7 +17,7 @@ class MTva
$this->vatDefined = false;
return false;
}
if ( $db === null ) {
$this->iDb = new WDB();
} else {
@ -39,7 +39,7 @@ class MTva
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];
if (count($tab)>0) {
//sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "classMTva sur $siren en cache", print_r($tab, true));