diff --git a/lib/Utils.php b/lib/Utils.php index 63f8de4..aba88b6 100644 --- a/lib/Utils.php +++ b/lib/Utils.php @@ -158,7 +158,9 @@ class Utils acc_accounts.id as idCompte, acc_accounts.code as codeCompte, acc_transactions_lines.credit as versement, - acc_transactions.date + acc_transactions.date, + acc_transactions_lines.id as id_trans_line, + acc_transactions.id as id_transaction FROM acc_transactions_users INNER JOIN membres ON acc_transactions_users.id_user = membres.id @@ -204,7 +206,9 @@ class Utils acc_accounts.code as codeCompte, membres.id as idUser, acc_transactions_lines.credit as versement, - acc_transactions.date + acc_transactions.date, + acc_transactions_lines.id as id_trans_line, + acc_transactions.id as id_transaction FROM acc_transactions_users INNER JOIN membres ON acc_transactions_users.id_user = membres.id @@ -256,7 +260,9 @@ class Utils acc_accounts.code as codeCompte, membres.id as idUser, acc_transactions_lines.credit as versement, - acc_transactions.date + acc_transactions.date, + acc_transactions_lines.id as id_trans_line, + acc_transactions.id as id_transaction FROM acc_transactions_users INNER JOIN membres ON acc_transactions_users.id_user = membres.id diff --git a/www/admin/action.php b/www/admin/action.php index 67602ac..93c9fe4 100644 --- a/www/admin/action.php +++ b/www/admin/action.php @@ -165,6 +165,7 @@ $tpl->register_function('afficher_versement', function ($params) onclick="cocherDecocherVersement(check_%1$s_%2$s, total_%1$s)" /> ', $idVersement, @@ -175,7 +176,9 @@ $tpl->register_function('afficher_versement', function ($params) ",", " " ), - date_format(date_create($versement->date),"d/m/Y") + date_format(date_create($versement->date),"d/m/Y"), + ADMIN_URL, + $versement->id_transaction ); return $out; });