{include="header"} {if condition="!empty($list)"}

Manage global paybacks

Add a new global payback

{if condition="$global_paybacks !== FALSE"}

List of previous global paybacks :

{loop="$global_paybacks"}
{$value->getDate()}
{if condition="$value->getClosed() === true"}[Closed] {/if}Payback n°{$value->getId()}
{/loop}
{/if} {else}

Add a global paybck

You can add a global payback using this page. Such a payback aims at minimizing as much as possible the number of individual paybacks between users. So, the index page table will be resetted and a new table will be created. This new table will be available in the "see global paybacks" page and will contain as least exchange as possible.

For eample, if a user A owes 5{$currency} to a user B and if B owes 5{$currency} to C, after the global paybacks, these paybacks will simplify and A will owe 5{$currency} to C only.

Note : It's not possible to revert this operation, unless you handle the restoration of data in your database manually. Be sure you want to launch this procedure before clicking on the button below.

Note : A backup of your database right now will be made and stored in the db_backup folder at the root of your instance. You'll be able to restore the current status of your database in case of error from your part.


If you confirm the creation of a global payback, please select right below the users you want to include in the payback.

Users to include {loop="$users"}
{/loop}

{/if} {include="footer"}