76 lines
2.4 KiB
Smarty
76 lines
2.4 KiB
Smarty
{include file="admin/_head.tpl" title="Documents — %s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
|
{include file="%s/templates/_menu.tpl"|args:$plugin_root current="index"}
|
|
|
|
{form_errors}
|
|
|
|
{if count($factures)}
|
|
<table class="list">
|
|
<thead>
|
|
<td>Type</td>
|
|
<td>Numéro</td>
|
|
<td>Receveur</td>
|
|
<td>Son adresse</td>
|
|
<td>Sa ville</td>
|
|
<td>Emission</td>
|
|
<td>Echéance</td>
|
|
<td>Réglée</td>
|
|
<td>Archivée</td>
|
|
<td>Moyen paiement</td>
|
|
<td>Contenu</td>
|
|
<td>Total</td>
|
|
<td></td>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$factures item=facture}
|
|
<tr>
|
|
<td><?php switch($facture->type_facture) {
|
|
case 0:
|
|
echo 'Devis';
|
|
break;
|
|
case 1:
|
|
echo 'Facture';
|
|
break;
|
|
case 2:
|
|
echo 'Reçu fiscal';
|
|
break;
|
|
case 3:
|
|
echo 'Reçu cotisation';
|
|
break;
|
|
}
|
|
?></td>
|
|
<td><a href="{plugin_url file="facture.php"}?id={$facture.id}">{$facture.numero}</a></td>
|
|
{if $facture.receveur_membre}
|
|
<td><a href="{$admin_url}membres/fiche.php?id={$facture.receveur.id}">{$facture.receveur->$identite}</a></td>
|
|
{else}
|
|
<td><a href="{plugin_url file="client.php"}?id={$facture.receveur.id}">{$facture.receveur.nom}</a></td>
|
|
{/if}
|
|
<td>{$facture.receveur.adresse}</td>
|
|
<td>{$facture.receveur.ville}</td>
|
|
<td>{$facture.date_emission|date:'d/m/Y'}</td>
|
|
<td>{$facture.date_echeance|date:'d/m/Y'}</td>
|
|
<td><?= $facture->reglee?'Réglée':'Non' ?></td>
|
|
<td><?= $facture->archivee?'Archivée':'Non' ?></td>
|
|
<td>{$facture.moyen_paiement}</td>
|
|
<td>
|
|
{if $facture.type_facture == 3}
|
|
<p>Cotisation {$facture.contenu.intitule}</p>
|
|
<p>Souscrite le {$facture.contenu.souscription|date_short}</p>
|
|
{else}
|
|
{foreach from=$facture.contenu item=contenu}
|
|
<p>{$contenu.designation} : {$contenu.prix|escape|money:false} {$config.monnaie}</p>
|
|
{/foreach}
|
|
{/if}
|
|
</td>
|
|
<td>{$facture.total|escape|money} {$config.monnaie}</td>
|
|
{* <td>{linkbutton shape="delete" href="%sfacture_supprimer.php?id=%d"|args:$plugin_url,$facture.id label="Supprimer"}</td> *}
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
|
|
</table>
|
|
{else}
|
|
<p class="help">Aucun document, vous pouvez commencer par {link href="facture_ajouter.php" label="créer un nouveau document"}.</p>
|
|
{/if}
|
|
|
|
{include file="admin/_foot.tpl"}
|