Ajout calcul total général case cochées
FossilOrigin-Name: 3a1cdc3cd5b81be5a45684569107bbe48f547d471a6873aaa508652cf8103b0b
This commit is contained in:
parent
358c44d23c
commit
57f0d77527
5 changed files with 120 additions and 73 deletions
|
|
@ -71,8 +71,8 @@ $tpl->register_function('afficher_debut_tarif', function ($params)
|
|||
<summary class="activite">
|
||||
<div class="activite">
|
||||
<input type="checkbox" id="check_%1$s"
|
||||
onclick="cocherDecocherTarif(check_%1$s)" />',
|
||||
$idTarif);
|
||||
onclick="cocherDecocherTarif(check_%1$s, %2$s)" />',
|
||||
$idTarif, "total_general");
|
||||
if ($idTarif == 0) {
|
||||
// versement sur un compte non rattaché à une activité
|
||||
$out .= sprintf('
|
||||
|
|
@ -122,7 +122,7 @@ $tpl->register_function('afficher_debut_personne', function ($params)
|
|||
<summary class="personne">
|
||||
<div class="personne">
|
||||
<input type="checkbox" id="check_%1$s"
|
||||
onclick="cocherDecocherPersonne(check_%1$s, total_%1$s)" />
|
||||
onclick="cocherDecocherPersonne(check_%1$s, total_%1$s, %3$s)" />
|
||||
<label for="check_%1$s">
|
||||
%2$s : <span class="total" id="total_%1$s">0,00 €</span>
|
||||
</label>
|
||||
|
|
@ -130,7 +130,8 @@ $tpl->register_function('afficher_debut_personne', function ($params)
|
|||
</summary>
|
||||
<div class="versements">',
|
||||
$idVersement,
|
||||
$personne->nomPrenom
|
||||
$personne->nomPrenom,
|
||||
"total_general"
|
||||
);
|
||||
return $out;
|
||||
});
|
||||
|
|
@ -163,7 +164,7 @@ $tpl->register_function('afficher_versement', function ($params)
|
|||
id="check_%1$s_%2$s"
|
||||
name="selected[]"
|
||||
value="%2$s"
|
||||
onclick="cocherDecocherVersement(check_%1$s_%2$s, total_%1$s)" />
|
||||
onclick="cocherDecocherCase(check_%1$s_%2$s, total_%1$s, %5$s)" />
|
||||
<label for="check_%1$s_%2$s"><span class="montant">%3$s</span>
|
||||
<span>%4$s</span>
|
||||
</label>
|
||||
|
|
@ -176,7 +177,8 @@ $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"),
|
||||
"total_general"
|
||||
);
|
||||
return $out;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue