issue #0001676: Request price log in database

This commit is contained in:
Arman KYOKCHAN 2013-08-02 08:39:17 +00:00
parent ee0b820a3a
commit 69f8751f06

View File

@ -27,6 +27,16 @@ Class GiantControllerLib
$Rapport = new Rapports($Pays, $TestIndication);
$CommandeP = new stdClass();
switch ($Utilisateur->getIdClient()) {
case '0':
$price = 0;
break;
case '1':
$price = 7;
break;
default:
$price = 10;
}
$id = $Rapport->getRapportExist($CompanyId, $Type, $Language);
if(empty($id)) {
$rapport = new GiantRechercheController($Pays, $TestIndication);
@ -44,7 +54,7 @@ Class GiantControllerLib
$CommandeP->login = $Utilisateur->getLogin();
$CommandeP->date = date("Y-m-d");
$CommandeP->typeReport = $function->getTypeReport($Type);
$CommandeP->price = 0;
$CommandeP->price = $price;
$CommandeP->pays = strtolower($Pays);
$CommandeP->rapportId = $report_id[0]['id'];
//$CommandeP->lang = $Utilisateur->getLang();