Change in trunk

This commit is contained in:
Michael RICOIS 2012-10-02 09:21:55 +00:00
parent dfb1be9d65
commit 4f37e8be76

View File

@ -215,7 +215,8 @@ class EnrichissementController extends Zend_Controller_Action
$prix = round($item['resultat'] * $priceLine + $prixInsee, 2);
//Forfait - Liste des commandes et calcul
if ($user->forfait>0) {
if ($user->forfait>0)
{
$dateBegin = $user->dateContrat;
$dateEnd = date('YmdHis', mktime(0,0,0,substr($user->dateContrat,5,2)+$user->periodContrat, substr($user->dateContrat,8,2), substr($user->dateContrat,0,4)));
@ -235,6 +236,14 @@ class EnrichissementController extends Zend_Controller_Action
$this->view->forfaitRemain = $user->forfait - $conso - $prix;
}
//Limite lignes totales
elseif ($user->forfait==0 && $user->limitFiles>0) {
//@todo : create the rule
}
//Illimité
elseif ($user->forfait==0 && $user->limitFiles==0) {
}
$this->view->prix = $prix;
$this->view->id = $item['id'];