Skip to content
Extraits de code Groupes Projets
Valider 7737df76 rédigé par okhin's avatar okhin :bicyclist:
Parcourir les fichiers

Merge branch '81-historiques-incomplets' into 'preprod'

Resolve "historiques incomplets"

Closes #81

See merge request lqdn-interne/don!98
parents a9436eb5 b9d75450
Aucune branche associée trouvée
Aucune étiquette associée trouvée
2 requêtes de fusion!101Preprod,!98Resolve "historiques incomplets"
......@@ -30,6 +30,7 @@ class Perso extends Controller
$this->get_contreparties($f3);
$this->get_dons($f3);
$this->get_recurrents($f3);
$this->compute_history($f3);
if ($f3->exists('GET.validate')) {
$f3->set('modal_counterparts', '1');
$f3->clear('GET.validate');
......@@ -84,6 +85,16 @@ class Perso extends Controller
$f3->set('dons_recurrents', $dons);
}
public function compute_history($f3)
{
$history = array();
$history = array_merge($f3->get('dons'), $f3->get('dons_recurrents'));
usort($history, function ($a, $b) {
return strtotime($a['datec']) - strtotime($b['datec']);
});
$f3->set('historique', $history);
}
public function login($f3, $args)
{
$f3->set('form_visible', 'login');
......
......@@ -141,7 +141,7 @@
<th>{{ _("Récurent") }}</th>
<th>{{ _("Piplome") }}</th>
</tr>
<repeat group="{{ @dons_recurrents }}" value="{{ @don }}">
<repeat group="{{ @historique }}" value="{{ @don }}">
<tr>
<td>{{ @don.datec }}</td>
<td>{{ @don.somme }}</td>
......@@ -156,22 +156,6 @@
</td>
</tr>
</repeat>
<repeat group="{{ @dons }}" value="{{ @don }}">
<tr>
<td>{{ @don.datec }}</td>
<td>{{ @don.somme }}</td>
<td>{{ _("Non")}}</td>
<td>
<check if="{{ @don.pdf == '' }}">
<a href="/cron/piplome/{{ @don.id }}">{{ _("Générer") }}</a>
<false>
<a href="{{ PIPLOME_URL }}/{{ @don.pdf }}.pdf" target="_blank">{{ @pdfs[@don.pdf].decimale }}.pdf</a>
</false>
</check>
</td>
</tr>
</repeat>
</table>
<table class="table text-left">
<tr>
......
......@@ -509,10 +509,6 @@ h4 {
color: #3B68B0;
}
.panel-body {
height: 100%;
}
.panel-body > div {
vertical-align: middle;
display: inline-block;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter