dolibarr 24.0.0-beta
subtotalline_select.tpl.php
1<?php
2/* Copyright (C) 2025 Yannis Hoareau
3 * Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 * or see https://www.gnu.org/
18 */
19
26$line_color = $object->getSubtotalColors($line->qty);
27
28print '<!-- line for order line '.$line->id.' -->'."\n";
29print '<tr style="background:#' . $line_color . '" id="row-'.$line->id.'">'."\n";
30
31
32$selected = 1;
33if (!empty($selectedLines) && !in_array($this->tpl['id'], $selectedLines)) {
34 $selected = 0;
35}
36print "<td colspan='5'>";
37print '<input id="cb'.$line->rowid.'" class="flat checkforselect" type="checkbox" name="subtotal_toselect[]" value="'.$line->rowid.'" ' . ($selected ? ' checked="checked"' : '') . ' >';
38print $line->desc . "</td>\n";
39
40
41print '</tr>';
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100