SD-13 CDC V3

This commit is contained in:
Claire DELBOS 2017-03-30 17:21:06 +02:00
parent f7a07d0882
commit 67ecccb832
5 changed files with 141 additions and 78 deletions

View File

@ -132,6 +132,40 @@ class Achatclient_IndexController extends Zend_Controller_Action
if(!isset($this->tranches[$idClient]) || !isset($this->tranches[$idClient][$nb_credit])){ if(!isset($this->tranches[$idClient]) || !isset($this->tranches[$idClient][$nb_credit])){
$this->error('paiement', 'Pas de tarification pour ce client'); $this->error('paiement', 'Pas de tarification pour ce client');
} }
// Recuperation des infos societe
$ws = new Scores_Ws_Client('credit', '0.1');
$params = new stdClass();
$params->id = 0;
$infocredit = $ws->getfactinfosCredit($params);
foreach($infocredit->result as $item){
$infos[$item->key]=array();
foreach($item->value->item as $obj){
$infos[$item->key][$obj->key]=$obj->value;
}
}
//Calcul de la TVA
//Si pays France > TVA = 20,00 %
$tva=0.2;
//var_dump($infos['entrep']);die;
if(!empty($infos['entrep']['Pays']) && strtoupper($infos['entrep']['Pays'])!="FRANCE"){
//Si étranger > TVA = Export exonération 0 %
$tva=0;
//si le client renseigne son N° de TVA intracommunautaire appliquer la TVA à 0 Auto liquidation ,
if(!empty($infos['entrep']['TvaNumero']) && substr($infos['entrep']['TvaNumero'],0,2!="FR")){
$tva=0;
}else{
//si au contraire le N° de TVA intracommunautaire nest pas renseigné il faut appliquer le taux normal de TVA actuellement 20.00 %
$tva=0.2;
}
}
//Si Guadeloupe (971), Martinique (972), La Réunion (974) > TVA = 8,50 %
if(substr($infos['entrep']['CP'],0,3)=='971' || substr($infos['entrep']['CP'],0,3)=='972' ||substr($infos['entrep']['CP'],0,3)=='974'){
$tva=0.085;
}
//Calcul des montants
$this->tranches[$idClient][$nb_credit]['tva']=$this->tranches[$idClient][$nb_credit]['montantht']*$tva;
$this->tranches[$idClient][$nb_credit]['montant']=$this->tranches[$idClient][$nb_credit]['montantht']+$this->tranches[$idClient][$nb_credit]['tva'];
//Parametrage //Parametrage
$pbparam=array(); $pbparam=array();
@ -155,9 +189,22 @@ class Achatclient_IndexController extends Zend_Controller_Action
'date_sent' => Date('Y-m-d H:i:s'), 'date_sent' => Date('Y-m-d H:i:s'),
'date_received' => null, 'date_received' => null,
'paybox_answer' => null, 'paybox_answer' => null,
'transaction' => json_encode(array('level' => 'Not confirmed', 'date' => Date('Y-m-d H:i:s'),'user' => $user->identity->id)), 'transaction' => json_encode(array('level' => 'Not confirmed', 'date' => Date('Y-m-d H:i:s'),'user' => $user->identity->id,'infosfact'=>$paidResult)),
'comment' => null, 'comment' => null,
); );
//Stockage des informations de facturation
$paidResult=new stdClass();
$paidResult->UserId= $user->identity->id;
$paidResult->UserName = $user->identity->nom.' '.$user->identity->prenom;
$paidResult->ClientName = $infos['societe']['NOM'];
$paidResult->siret=$infos['societe']['SIREN'].$info['societe']['NIC'];
$paidResult->Clienttvanbr=$infos['entrep']['TvaNumero'];
$paidResult->ClientFacDest = $user->identity->email;
$paidResult->ClientFacAdr1 = $infos['societe']['ADR_NUMVOIE'].' '.$infos['societe']['ADR_TYPVOIE'].' '.$infos['societe']['ADR_LIBVOIE'];
$paidResult->ClientFacAdr2 = $infos['societe']['ADR_CP'].' '.$infos['societe']['ADR_LIBCOM'];
$paidResult->ClientFacAdr3 = $infos['societe']['PAYS'];
$paidResult->idCmd = $ligneCredit['idCmd'];
$paidResult->numRC=$infos['societe']['NUMRC'];
$ws = new Scores_Ws_Client('credit', '0.1'); $ws = new Scores_Ws_Client('credit', '0.1');
try { try {
$params = new stdClass(); $params = new stdClass();
@ -181,6 +228,7 @@ class Achatclient_IndexController extends Zend_Controller_Action
//$_POST=$paybox->getFormParameters(); //$_POST=$paybox->getFormParameters();
//$this->redirect($paybox->getFormUrl()); //$this->redirect($paybox->getFormUrl());
$this->view->pbparams = $pbparams; $this->view->pbparams = $pbparams;
$this->view->infosfact=$paidResult;
$this->view->PayboxUrl = $paybox->getFormUrl(); $this->view->PayboxUrl = $paybox->getFormUrl();
$this->view->PayboxValues = $paybox->getFormParameters(); $this->view->PayboxValues = $paybox->getFormParameters();
@ -197,20 +245,21 @@ class Achatclient_IndexController extends Zend_Controller_Action
$ok=$user->checkperm($this->libdroits); $ok=$user->checkperm($this->libdroits);
$message=$request->getParam('message'); $message=$request->getParam('message');
$categorie=$request->getParam('categorie');
$objet=$request->getParam('objet'); $objet=$request->getParam('objet');
$histo=$this->getHistoContacts(); $histo=$this->getHistoContacts();
$this->view->histocontact=$histo; $this->view->histocontact=$histo;
if(empty($message) && empty($objet)){ if(empty($message) && empty($objet)){
$this->view->msg="Choisissez l'objet et entrez votre message"; $this->view->msg="Entrez l'objet et votre message";
return; return;
} }
if(empty($message) && !empty($objet)){ if((empty($message) || empty($objet)) && !empty($categorie)){
$this->view->msg="Merci de remplir votre message"; $this->view->msg="Entrez l'objet et votre message";
}else{ }else{
$data=array( $data=array(
'idUser' => $user->identity->id, 'idUser' => $user->identity->id,
'begin' => Date('Y-m-d H:i:s'), 'begin' => Date('Y-m-d H:i:s'),
'subject' => $objet, 'subject' => '['.$categorie.']'.$objet,
'message' => 'From : '.$user->identity->username.' Message : '.$message, 'message' => 'From : '.$user->identity->username.' Message : '.$message,
'stage' => 1, 'stage' => 1,
'answer' => '[Date : '.Date('Y-m-d H:i:s').'] Message enregistré' 'answer' => '[Date : '.Date('Y-m-d H:i:s').'] Message enregistré'
@ -218,7 +267,7 @@ class Achatclient_IndexController extends Zend_Controller_Action
$ok=$this->sendContact($data,$user); $ok=$this->sendContact($data,$user);
$this->view->msg="Votre message a bien été pris en compte"; $this->view->msg="Votre message a bien été pris en compte";
} }
$this->redirect(array('module' => 'achatclient','controller' => 'index', 'action'=>'contact'));
} }
public function getsiretinfosAction(){ public function getsiretinfosAction(){
@ -269,7 +318,7 @@ class Achatclient_IndexController extends Zend_Controller_Action
'id' => 'Reference enregistrement', 'id' => 'Reference enregistrement',
'idUSer' => 'Reference utilisateur', 'idUSer' => 'Reference utilisateur',
'begin' => 'Message du', 'begin' => 'Message du',
'subject' => 'Categorie', 'subject' => 'Objet',
'message' => 'Votre message', 'message' => 'Votre message',
'stage' => 'Etape', 'stage' => 'Etape',
'answer' => 'Suivi'); 'answer' => 'Suivi');
@ -298,6 +347,9 @@ class Achatclient_IndexController extends Zend_Controller_Action
if($field->key=='answer'){ if($field->key=='answer'){
$infos[$n][$libelles[$field->key]]=str_replace('[DE','<br>[DE',$field->value); $infos[$n][$libelles[$field->key]]=str_replace('[DE','<br>[DE',$field->value);
} }
if($field->key=='subject'){
$infos[$n][$libelles[$field->key]]=str_replace(']','</b> : ',str_replace('[','<b>',$field->value));
}
} }
} }

View File

@ -109,47 +109,43 @@ class Achatclient_InextensoController extends Zend_Controller_Action
// Acheteur // Acheteur
$pdf->SetXY(120, 60); $pdf->SetXY(120, 60);
$paidResult=new stdClass(); $transaction=json_decode($infos['commande']['transaction']);
$paidResult->UserId= $infos['commande']['idUser']; if(isset($transaction->infosfact) && !empty($transaction->infosfact)){
$paidResult=$transaction->infosfact;
}else{
$paidResult=new stdClass();
$paidResult->UserId= $infos['commande']['idUser'];
$paidResult->UserName = $infos['commande']['nom'].' '.$infos['commande']['prenom'];
$paidResult->ClientName = $infos['societe']['NOM'];
$paidResult->siret=$infos['societe']['SIREN'].$info['societe']['NIC'];
$paidResult->Clienttvanbr=$infos['entrep']['TvaNumero'];
$paidResult->ClientFacDest = $infos['commande']['email'];
$paidResult->ClientFacAdr1 = $infos['societe']['ADR_NUMVOIE'].' '.$infos['societe']['ADR_TYPVOIE'].' '.$infos['societe']['ADR_LIBVOIE'];
$paidResult->ClientFacAdr2 = $infos['societe']['ADR_CP'].' '.$infos['societe']['ADR_LIBCOM'];
$paidResult->ClientFacAdr3 = $infos['societe']['PAYS'];
$paidResult->idCmd = $infos['commande']['idCmd'];
$paidResult->numRC=$infos['societe']['NUMRC'];
}
if($paidResult->UserId!=$idUser){ if($paidResult->UserId!=$idUser){
$this->view->message=__LINE__; $this->view->message=__LINE__;
return false; return false;
} }
$paidResult->UserName = $infos['commande']['nom'].' '.$infos['commande']['prenom']; $paidResult->idFact= 'CB.'.Date('y',strtotime($infos['commande']['date_sent'])).sprintf("%1$06d",$infos['commande']['id']);
$paidResult->ClientName = $infos['societe']['NOM'];
$paidResult->ClientFacDest = $infos['commande']['email'];
$paidResult->ClientFacAdr1 = $infos['societe']['ADR_NUMVOIE'].' '.$infos['societe']['ADR_TYPVOIE'].' '.$infos['societe']['ADR_LIBVOIE'];
$paidResult->ClientFacAdr2 = $infos['societe']['ADR_CP'].' '.$infos['societe']['ADR_LIBCOM'];
$paidResult->ClientFacAdr3 = $infos['societe']['PAYS'];
$paidResult->nbCredit = $infos['commande']['nbCredit']*$infos['commande']['valid']; $paidResult->nbCredit = $infos['commande']['nbCredit']*$infos['commande']['valid'];
$paidResult->amount = $infos['commande']['amount']*$infos['commande']['valid']/100; $paidResult->amount = number_format($infos['commande']['amount']*$infos['commande']['valid']/100,2,","," ");
$paidResult->amount_ht = $infos['commande']['amount_ht']*$infos['commande']['valid']/100; $paidResult->amount_ht = number_format($infos['commande']['amount_ht']*$infos['commande']['valid']/100,2,","," ");
$paidResult->amount_tva = $infos['commande']['amount_tva']*$infos['commande']['valid']/100; $paidResult->amount_tva = number_format($infos['commande']['amount_tva']*$infos['commande']['valid']/100,2,","," ");
$paidResult->taux_tva = number_format(($infos['commande']['amount_tva']/$infos['commande']['amount_ht'])*100,"0,00 %"); $paidResult->taux_tva = number_format(($infos['commande']['amount_tva']/$infos['commande']['amount_ht'])*100,2,","," ");
$paidResult->idFact= 'PL.'.Date('Y',strtotime($infos['commande']['date_sent'])).sprintf("%1$08d",$infos['commande']['id']);
$paidResult->idCmd = $infos['commande']['idCmd'];
$paidResult->dateCmd = Date('d/m/Y',strtotime($infos['commande']['date_sent'])); $paidResult->dateCmd = Date('d/m/Y',strtotime($infos['commande']['date_sent']));
$paidResult->numRC=$infos['societe']['NUMRC']; $paidResult->dateExpir = Date('d/m/Y',strtotime($infos['commande']['date_sent'])+365*24*3600);
$paidResult->hmCmd = Date('H\hi',strtotime($infos['commande']['date_sent']));
/*$address = $paidResult->UserName . ' ' . $paidResult->UserFirstname . "\n" .
$paidResult->ClientName ."\n" .
$paidResult->ClientFacDest . "\n" .
$paidResult->ClientFacAdr1 . "\n" .
$paidResult->ClientFacAdr2 . "\n" .
$paidResult->ClientFacAdr3 . "\n";
//$pdf->MultiCell(55, 5, $address, 1, 'L', 0, 1, '', '', true);
//$pdf->Ln(5);
$amount = $paidResult->amount / 100;
$amount_ht = $paidResult->amount_ht / 100;
*/
$logotbl = <<<EOD $logotbl = <<<EOD
<img src="http://www.lendopolis.com/images/howto/partners/logo-scores-et-decisions-alt.jpg" width="150"> <img src="https://extranet.scores-decisions.com/themes/default/images/logos/logo-scores-et-decisions.png" width="200">
<br /> <br />
<br /> <br />
EOD; EOD;
$pdf->SetXY(20, 15); $pdf->SetXY(20, 25);
$pdf->writeHTML($logotbl, true, false, false, false, ''); $pdf->writeHTML($logotbl, true, false, false, false, '');
$facttbl = <<<EOD $facttbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="220px"> <table cellspacing="0" cellpadding="1" border="1" width="220px">
@ -164,7 +160,7 @@ EOD;
<tr> <tr>
<td style="text-align: right;font-size:8px;" width="80px">$paidResult->idFact</td> <td style="text-align: right;font-size:8px;" width="80px">$paidResult->idFact</td>
<td style="text-align: right;font-size:8px;" width="70px">$paidResult->dateCmd</td> <td style="text-align: right;font-size:8px;" width="70px">$paidResult->dateCmd</td>
<td style="text-align: right;font-size:8px;" width="70px">$paidResult->UserId</td> <td style="text-align: right;font-size:8px;" width="70px">CB$paidResult->UserId</td>
</tr> </tr>
</table> </table>
<br /> <br />
@ -173,19 +169,13 @@ EOD;
$pdf->SetXY(110, 25); $pdf->SetXY(110, 25);
$pdf->writeHTML($facttbl, true, false, false, false, ''); $pdf->writeHTML($facttbl, true, false, false, false, '');
$prestattbl = <<<EOD $prestattbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="220px" style="font-size:10px;"> <table border="1" width="220px"><tr><td> <table cellspacing="1" cellpadding="1" width="210px" style="font-size:10px;">
<tr> <tr><td>&nbsp;</td></tr>
<th style="text-align: center;background-color:#E6E6FF">Prestataire</th> <tr><td>Numero siret : $paidResult->siret</td></tr>
</tr> <tr><td>&nbsp;</td></tr>
<tr><td>SCORES & DECISIONS</td></tr> <tr><td>Numéro TVA : $paidResult->Clienttvanbr</td></tr>
<tr><td>8 RUE ROUGET DE LISLE</td></tr> <tr><td>&nbsp;</td></tr>
<tr><td>AXE SEINE IMMEUBLE A</td></tr> </table></td></tr></table>
<tr><td>92130 ISSY LES MOULINEAUX</td></tr>
<tr><td>Tél. : 01 75 43 61 02</td></tr>
<tr><td>Contact : compta@scores-decisions.com</td></tr>
<tr><td>R.C.S. : 2012B01581 RCS NANTERRE</td></tr>
<tr><td>N.I.I. : FR84 494967938</td></tr>
</table>
<br /> <br />
<br /> <br />
EOD; EOD;
@ -196,14 +186,12 @@ EOD;
<tr> <tr>
<th style="text-align: center;background-color:#E6E6FF">Destinataire</th> <th style="text-align: center;background-color:#E6E6FF">Destinataire</th>
</tr> </tr>
<tr><td>$paidResult->UserName</td></tr>
<tr><td>$paidResult->ClientName</td></tr> <tr><td>$paidResult->ClientName</td></tr>
<tr><td>$paidResult->ClientFacAdr1</td></tr> <tr><td>$paidResult->ClientFacAdr1</td></tr>
<tr><td>$paidResult->ClientFacAdr2</td></tr> <tr><td>$paidResult->ClientFacAdr2</td></tr>
<tr><td>$paidResult->ClientFacAdr22</td></tr>
<tr><td>$paidResult->ClientFacAdr3</td></tr> <tr><td>$paidResult->ClientFacAdr3</td></tr>
<tr><td>Contact : $paidResult->ClientFacDest</td></tr> <tr><td>$paidResult->ClientFacDest</td></tr>
<tr><td>R.C.S. : $paidResult->numRC</td></tr>
<tr><td>N.I.I. : </td></tr>
</table> </table>
<br /> <br />
<br /> <br />
@ -211,21 +199,23 @@ EOD;
$pdf->SetXY(110, 65); $pdf->SetXY(110, 65);
$pdf->writeHTML($clienttbl, true, false, false, false, ''); $pdf->writeHTML($clienttbl, true, false, false, false, '');
$detailtbl = <<<EOD $detailtbl = <<<EOD
<table cellspacing="0" cellpadding="1" border="1" width="475" style="font-size:10px;"> <table cellspacing="0" cellpadding="1" border="1" width="475" style="font-size:8px;">
<tr> <tr>
<th style="text-align: center;background-color:#E6E6FF">Date Commande</th> <td style="text-align: center;background-color:#E6E6FF;width:50;">Date Commande</td>
<th style="text-align: center;background-color:#E6E6FF">Référence Commande</th> <td style="text-align: center;background-color:#E6E6FF;width:100;">Référence Commande</td>
<th style="text-align: center;background-color:#E6E6FF">Description Commande</th> <td style="text-align: center;background-color:#E6E6FF;width:100;">Description Commande</td>
<th style="text-align: center;background-color:#E6E6FF">Quantité</th> <td style="text-align: center;background-color:#E6E6FF;width:50;">Date d'expiration</td>
<th style="text-align: center;background-color:#E6E6FF">Prix H.T.</th> <td style="text-align: center;background-color:#E6E6FF;width:50;">Quantite</td>
<th style="text-align: center;background-color:#E6E6FF">Total H.T.</th> <td style="text-align: center;background-color:#E6E6FF;width:50;">Prix H.T.</td>
<td style="text-align: center;background-color:#E6E6FF;width:75;">Total H.T.</td>
</tr> </tr>
<tr><td>$paidResult->dateCmd</td> <tr><td style="width:50;">$paidResult->dateCmd</td>
<td>$paidResult->idCmd</td> <td style="width:100;">$paidResult->idCmd</td>
<td>Abonnement Extranet niveau1</td> <td style="width:100;">Crédits à consommer<br>Stock minimum</td>
<td style="text-align: right;">$paidResult->nbCredit</td> <td style="text-align: right;width:50;">$paidResult->dateExpir</td>
<td style="text-align: right;">$paidResult->amount_ht </td> <td style="text-align: center;width:50;">$paidResult->nbCredit</td>
<td style="text-align: right;">$paidResult->amount_ht </td></tr> <td style="text-align: right;width:50;">$paidResult->amount_ht </td>
<td style="text-align: right;width:75;">$paidResult->amount_ht </td></tr>
</table> </table>
<br /> <br />
<br /> <br />
@ -234,6 +224,8 @@ EOD;
$pdf->writeHTML($detailtbl, true, false, false, false, ''); $pdf->writeHTML($detailtbl, true, false, false, false, '');
$totaltbl = <<<EOD $totaltbl = <<<EOD
<span style="text-align:right;font-size:8px;">
TVA acquittée sur les encaissements</span><br><br><br><br>
<table cellspacing="0" cellpadding="1" border="1" width="475" style="font-size:10px;"> <table cellspacing="0" cellpadding="1" border="1" width="475" style="font-size:10px;">
<tr> <tr>
<th style="text-align: center;background-color:#E6E6FF">Total H.T.</th> <th style="text-align: center;background-color:#E6E6FF">Total H.T.</th>
@ -249,7 +241,7 @@ EOD;
<td style="text-align: right;">$paidResult->amount </td></tr> <td style="text-align: right;">$paidResult->amount </td></tr>
</table> </table>
EOD; EOD;
$pdf->SetXY(20, 190); $pdf->SetXY(20, 180);
$pdf->writeHTML($totaltbl, true, false, false, false, ''); $pdf->writeHTML($totaltbl, true, false, false, false, '');
$footertbl = <<<EOD $footertbl = <<<EOD
@ -258,15 +250,19 @@ EOD;
<th style="text-align: center;background-color:#E6E6FF;">Mode de paiement</th> <th style="text-align: center;background-color:#E6E6FF;">Mode de paiement</th>
<th style="text-align: center;background-color:#E6E6FF;">Date de paiement</th> <th style="text-align: center;background-color:#E6E6FF;">Date de paiement</th>
</tr> </tr>
<tr><td style="text-align: center;">Paiement en ligne carte bancaire</td> <tr><td style="text-align: center;">Paiement en ligne - carte bancaire</td>
<td style="text-align: center;">$paidResult->dateCmd</td> <td style="text-align: center;">$paidResult->dateCmd à $paidResult->hmCmd</td>
</tr> </tr>
</table> </table>
EOD; EOD;
$pdf->SetXY(20, 230); $pdf->SetXY(20, 230);
$pdf->writeHTML($footertbl, true, false, false, false, ''); $pdf->writeHTML($footertbl, true, false, false, false, '');
$footer = <<<EOD $footer = <<<EOD
<center><span style="font-size:8px;">Scores & Decisions Société anonyme par actions simplifiées au capital de 618 450,00 - SIRET : 494 967 938 00072</span></center> <span style="font-size:8px;text-align:center;" align="center">
Scores & Decisions 8 Rue Rouget de lIsle Axe Seine Immeuble A - 92130 ISSY LES MOULINEAUX
<br>Tél 01.75.43.61.02 Contact : compta@scores-decisions.com SAS au capital de 618 450,00
<br>R.C.S. : 2012B01581 RCS NANTERRE - - SIRET : 494 967 938 00072 TVA intra. : FR84 494967938
</span>
EOD; EOD;
$pdf->SetXY(20, 280); $pdf->SetXY(20, 280);
$pdf->writeHTML($footer, true, false, false, false, ''); $pdf->writeHTML($footer, true, false, false, false, '');

View File

@ -29,8 +29,15 @@ td.nbr{
<form action="<?=$this->url(array('controller'=>'index', 'action'=>'contact'))?>" method="POST" id="contactform"> <form action="<?=$this->url(array('controller'=>'index', 'action'=>'contact'))?>" method="POST" id="contactform">
<div class="credit"> <div class="credit">
<div class="form-group"> <div class="form-group">
<label for="objet" class="required">Votre demande concerne :</label> <label for="objet" class="required">Demande concernant :</label>
<select name="objet"><option>Le fonctionnement logiciel</option><option>Vos achats</option><option>Vos consommations</option><option>Autre</option></select> <select name="categorie" style="min-width:180px;"><option value="facturation">La facturation</option>
<option value="commercial">Une demande commerciale</option>
<option value="autre">Un autre sujet</option></select>
</div>
<div class="spacer">&nbsp;</div>
<div class="form-group">
<label for="objet">Objet :</label>
<input name="objet" placeholder="Objet de votre message" style="min-width:275px;">
</div> </div>
<div class="spacer">&nbsp;</div> <div class="spacer">&nbsp;</div>
<div class="form-group"> <div class="form-group">
@ -46,14 +53,18 @@ Retour</a>
</div> </div>
</form> </form>
</div> </div>
<?php if(count($this->histocontact)>0):?>
<h2>Vos précédentes demandes</h2>
<?php foreach($this->histocontact as $item):?> <?php foreach($this->histocontact as $item):?>
<div class="data"><hr> <div class="data"><hr>
<ul> <ul>
<li><i>Message du</i> : <?=$item['Message du']?> <li><i>Message du</i> : <?=$item['Message du']?>
<li><i>Etat du suivi</i> : <?=$item['Etape']?> <li><i>Etat du suivi</i> : <?=$item['Etape']?>
<li><i>Objet</i> : <?=$item['Objet']?>
<li><i>Demande</i> : <?=$item['Votre message']?> <li><i>Demande</i> : <?=$item['Votre message']?>
<li><i>Suivi</i> : <?=$item['Suivi']?> <li><i>Suivi</i> : <?=$item['Suivi']?>
</ul> </ul>
</div> </div>
<?php endforeach;?> <?php endforeach;?>
<?php endif;?>
</div> </div>

View File

@ -65,7 +65,7 @@ Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'co
<td class="nbr"><?=$row['nbCredit']?>&nbsp;Credits</td> <td class="nbr"><?=$row['nbCredit']?>&nbsp;Credits</td>
<td><?=($row['valid']==0?'Annulée':'Enregistrée')?></td> <td><?=($row['valid']==0?'Annulée':'Enregistrée')?></td>
<td><?=($row['valid']==1?Date('d/m/Y',strtotime($row['date_sent'])+365*24*3600):'-')?></td> <td><?=($row['valid']==1?Date('d/m/Y',strtotime($row['date_sent'])+365*24*3600):'-')?></td>
<td><a href="<?=$this->url(array('module' => 'achatclient','controller' => 'inextenso','action' => 'index', 'id' => $row['id']))?>">Facture</a></td> <td><a href="<?=$this->url(array('module' => 'achatclient','controller' => 'inextenso','action' => 'index', 'id' => $row['id']))?>" target="_blank">Facture</a></td>
</tr> </tr>
<?php endforeach;?> <?php endforeach;?>
</table> </table>

View File

@ -15,16 +15,20 @@ td.nbr{
<h2>Informations de la commande</h2> <h2>Informations de la commande</h2>
<div class="credit"><table class="data" style="max-width:80%;"> <div class="credit"><table class="data" style="max-width:80%;">
<tr><td>Identifiant de commande : </td><td><?=$this->pbparams['cmdId']?></td></tr> <tr><td>Identifiant de commande : </td><td><?=$this->pbparams['cmdId']?></td></tr>
<tr><td>Client : </td><td><?=$this->pbparams['login']?></td></tr> <tr><td>Utilisateur : </td><td><?=$this->pbparams['login']?></td></tr>
<tr><td>Société : </td><td><?=$this->infosfact->siret?><br><b><?=$this->infosfact->ClientName?></b>
<br><i><?=$this->infosfact->ClientFacAdr1?>-<?=$this->infosfact->ClientFacAdr2?> <?=$this->infosfact->ClientFacAdr3?></i>
<br><?=$this->infosfact->Clienttvanbr?></td></tr>
<tr><td>Nombre de crédits commandés : </td><td><?=$this->pbparams['nb_credit']?></td></tr> <tr><td>Nombre de crédits commandés : </td><td><?=$this->pbparams['nb_credit']?></td></tr>
<tr><td>Montant HT : </td><td class="nbr"><?=number_format($this->pbparams['montantht']/100,2,","," ")?> euros</td></tr> <tr><td>Montant HT : </td><td class="nbr"><?=number_format($this->pbparams['montantht']/100,2,","," ")?> euros</td></tr>
<tr><td>Tva : </td><td class="nbr"><?=number_format($this->pbparams['tva']/100,2,","," ")?> euros</td></tr> <tr><td>Tva : </td><td class="nbr"><?=number_format($this->pbparams['tva']/100,2,","," ")?> euros</td></tr>
<tr><td>Montant TTC : </td><td class="nbr"><?=number_format($this->pbparams['montant']/100,2,","," ")?> euros</td></tr> <tr><td>Montant TTC : </td><td class="nbr"><?=number_format($this->pbparams['montant']/100,2,","," ")?> euros</td></tr>
</table> </table>
<p>Une fois le paiement effectué cliquer sur le bouton "Retour boutique" afin de <p>Une fois le paiement effectué cliquer sur le bouton "Retour boutique" afin de
consulter vos documents, si la redirection automatique ne se fait pas.</p> consulter vos documents, si la redirection automatique ne se fait pas.</p><p>Si vous constatez une anomalie dans les informations ci-dessus
<a href="<?=$this->url(array('controller'=>'index', 'action'=>'contact'))?>">
<button name="contact" id="contact" class="button ui-button ui-corner-all ui-widget" role="button">Nous contacter</button></a>
</div> </div>
<h2>Démarrer le paiement</h2> <h2>Démarrer le paiement</h2>
<div class="credit"> <div class="credit">
<?php if ($this->PayboxValues) {?> <?php if ($this->PayboxValues) {?>