extranet/includes/giant/templates/rapport/PaymentBehaviour.tpl.php
Damien LASSERRE 4d4e57b456 Mise a jours de giant
- Modification des rapport
 - Ajout des flags sur SOAP
 - Modification visuels
2011-04-13 12:48:49 +00:00

101 lines
4.5 KiB
PHP

<h2><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], 'PaymentBehaviour');?></h2>
<table class="PaymentBehaviourGiant" width="100%">
<?php foreach ($PaymentBehaviour as $Payment) {?>
<?php if(isset($Payment->LiquidityAssessment) or $Payment->PaymentQualification){ ?>
<?php foreach($PaymentBehaviour as $Behaviour) {?>
<?php foreach($Payment as $champ => $valeur) {?>
<?php if (isset($Payment->$champ->Qualification)) {?>
<tr>
<td><b><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], $champ);?></b></td>
<td><?php echo $Payment->$champ->Qualification;?></td>
</tr>
<?php }?>
<?php }?>
<?php }?>
<?php }?>
</table>
<?php }?>
<br /><br />
<?php foreach ($PaymentBehaviour as $Payment) {?>
<table class="PaymentBehaviourGiant" width="100%">
<?php if (isset($Payment->AnalysisByPeriod)) {?>
<tr>
<td id="titre" colspan="2"><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], 'AnalysisByPeriod')?></td>
</tr>
<tr>
<?php foreach($Payment->AnalysisByPeriod->Category[0] as $champ => $donnees) {?>
<?php if ($champ == 'Period'){?>
<td><b><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], $champ)?></b></td>
<?php } elseif($champ == 'PercentageWithinTerms') {?>
<td><b><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], $champ)?></b></td>
<?php } elseif($champ == 'DueDateExceeds') {?>
<?php foreach($donnees as $DueDateExceeds) {?>
<td><b>
<?php echo $DueDateExceeds->NrOfDaysExceeds->LowerLimit->_;?></b>
<?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], 'to');?>
<b><?php echo $DueDateExceeds->NrOfDaysExceeds->UpperLimit->_;?>
</b></td>
<?php }?>
<?php }?>
<?php }?>
</tr>
<?php foreach($Payment->AnalysisByPeriod->Category as $categorie) {?>
<tr> <?php foreach($categorie as $champ => $donnees) {?>
<?php if ($champ == 'Period'){?>
<td width="15%"><?php echo _setDateWithGiant($donnees->StartDate->format, $donnees->StartDate->_). ' - '
._setDateWithGiant($donnees->EndDate->format, $donnees->EndDate->_);?></td>
<?php } elseif($champ == 'PercentageWithinTerms') {?>
<td align="center" width="27%"><?php echo $donnees;?> %</td>
<?php } elseif($champ == 'DueDateExceeds') {?>
<?php foreach($donnees as $DueDateExceeds) {?>
<td><?php echo $DueDateExceeds->Percentage;?> %</b>
<?php }?>
<?php }?>
<?php }?>
</tr>
<?php }?>
<?php }?>
</table>
<?php }?>
<?php foreach ($PaymentBehaviour as $Payment) {?>
<table class="PaymentBehaviourGiant" width="100%">
<?php if (isset($Payment->AnalysisByAmount)) {?>
<tr>
<td id="titre" colspan="2"><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], 'AnalysisByAmount')?></td>
</tr>
<tr>
<?php foreach($Payment->AnalysisByAmount->Category[0] as $champ => $donnees) {?>
<?php if ($champ == 'AmountCategory'){?>
<td><b><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], $champ)?></b></td>
<?php } elseif($champ == 'PercentageWithinTerms') {?>
<td><b><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], $champ)?></b></td>
<?php } elseif($champ == 'DueDateExceeds') {?>
<?php foreach($donnees as $DueDateExceeds) {?>
<td><b>
<?php echo $DueDateExceeds->NrOfDaysExceeds->LowerLimit->_;?></b>
<?php echo SelectTrueLabel($this->labelConfig['Section_rapportPaymentBehaviour'], 'to');?>
<b><?php echo $DueDateExceeds->NrOfDaysExceeds->UpperLimit->_;?>
</b></td>
<?php }?>
<?php }?>
<?php }?>
</tr>
<?php foreach($Payment->AnalysisByAmount->Category as $categorie) {?>
<tr> <?php foreach($categorie as $champ => $donnees) {?>
<?php if ($champ == 'AmountCategory'){?>
<td width="15%"><?php echo (($donnees->LowerLimit->_)? $donnees->LowerLimit->_.' - ':'')
.$donnees->HigherLimit->_;?></td>
<?php } elseif($champ == 'PercentageWithinTerms') {?>
<td align="center" width="27%"><?php echo $donnees;?> %</td>
<?php } elseif($champ == 'DueDateExceeds') {?>
<?php foreach($donnees as $DueDateExceeds) {?>
<td><?php echo $DueDateExceeds->Percentage;?> %</b>
<?php }?>
<?php }?>
<?php }?>
</tr>
<?php }?>
<?php }?>
</table>
<?php }?>