Commit 3ba75f184bf0edb305a2c93673d9635898719335

Authored by Darkjeff
1 parent bdd11e82
Exists in 3.5 and in 1 other branch 3.6

purchase ventilation add select all

Showing 1 changed file with 20 additions and 4 deletions   Show diff stats
accountingex/supplier/liste.php
... ... @@ -61,6 +61,24 @@ $formventilation = new FormVentilation($db);
61 61  
62 62 llxHeader('', $langs->trans("Ventilation"));
63 63  
  64 +print '<script type="text/javascript">
  65 + $(function () {
  66 + $(\'#select-all\').click(function(event) {
  67 + // Iterate each checkbox
  68 + $(\':checkbox\').each(function() {
  69 + this.checked = true;
  70 + });
  71 + });
  72 + $(\'#unselect-all\').click(function(event) {
  73 + // Iterate each checkbox
  74 + $(\':checkbox\').each(function() {
  75 + this.checked = false;
  76 + });
  77 + });
  78 + });
  79 + </script>';
  80 +
  81 +
64 82 /*
65 83 * Action
66 84 */
... ... @@ -190,7 +208,7 @@ if ($result) {
190 208 print '<td align="right">' . $langs->trans("Amount") . '</td>';
191 209 print '<td align="right">' . $langs->trans("Compte") . '</td>';
192 210 print '<td align="center">' . $langs->trans("IntoAccount") . '</td>';
193   - print '<td align="center">' . $langs->trans("Ventilate") . '</td>';
  211 + print '<td align="center">'.$langs->trans("Ventilate").'<BR><label id="select-all">'.$langs->trans('All').'</label>/<label id="unselect-all">'.$langs->trans('None').'</label>'.'</td>';
194 212 print "</tr>\n";
195 213  
196 214 $facturefourn_static = new FactureFournisseur($db);
... ... @@ -277,9 +295,7 @@ if ($result) {
277 295 print $objp->code_buy2;
278 296 print '</td>';
279 297  
280   - print '<td align="center" style="' . $code_buy_notset . '">';
281   - print $objp->type;
282   - print '</td>';
  298 +
283 299  
284 300 // Colonne choix du compte
285 301 print '<td align="center">';
... ...