{include="header"} {if condition="$notice != ''"}
{$notice}
Lire ligne doit case {$currency} à colonne. Vous pouvez cliquer sur les liens pour confirmer les remboursements.
Doit\À | {loop="users"}{$value->getDisplayName()} | {/loop}||
---|---|---|---|
{$value->getDisplayName()} | {loop="users"} {if condition="$balances[$value1->getId()][$value2->getId()] === 'X'"}{elseif condition="$balances[$value1->getId()][$value2->getId()] === '-' || ($value2->getId() != $current_user->getId() && !$current_user->getAdmin())"} | {$balances[$value1->getId()][$value2->getId()]} | {else}{$balances[$value1->getId()][$value2->getId()]} | {/if} {/loop}
Afficher uniquement les dépenses du dernier mois
{/if} {if condition="$invoices !== false && count($invoices)>=1"}Date | Payé par | Participants | Montant | Quoi ? | Modifier | Supprimer |
---|---|---|---|---|---|---|
{$value->getDate('d/m/Y A')} | {$users[$value->getBuyer()]->getDisplayName()} |
{loop="$value->getUsersIn()->get()"}
{$users[$key2]->getDisplayName()}
{if condition="$value2 > 1"}
({$value2} invités)
{elseif condition="$value2 == 1"}
({$value2} invité)
{/if}
{if condition="$value1->getBuyer() != $key2"}
-
{if condition="$paybacks[$value1->getId()] === false || !in_array($key2, array_keys($paybacks[$value1->getId()]))"}
{if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"}
{/if}
Reste {$value1->getAmountPerPerson($key2)} {$currency}
{if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"}
{/if}
{else}
{if condition="$paybacks[$value1->getId()][$key2]->getAmount() == $value1->getAmountPerPerson($key2)"}
{if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"}
{/if}
Payé
{if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"}
{/if}
{else}
{if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"}
{/if}
Reste {$value1->getAmountPerPerson($key2) - $paybacks[$value1->getId()][$key2]->getAmount()}{$currency}
{if condition="$current_user->getId() == $value1->getBuyer() || $current_user->getAdmin()"}
{/if}
{/if}
{/if}
{/if}
{/loop} |
{$value->getAmount()}{$currency} | {$value->getWhat()} | {if condition="$value->getBuyer() == $current_user->getId() || $current_user->getAdmin()"} Modifier {else} - {/if} | {if condition="$value->getBuyer() == $current_user->getId() || $current_user->getAdmin()"} Supprimer {else} - {/if} |
Aucune dépense à afficher.
{/if}