origin_line_id)) { print ''; // id of order line $id = $line->id; $element = $line->element; $desc = $line->desc; $line_options = $line->extraparams["subtotal"] ?? array(); $buttons = $object->status == Expedition::STATUS_DRAFT; } else { print ''; // id of order line $id = $line->rowid; $element = "commande"; $desc = $line->description; $extraparams = (array) json_decode($line->extraparams, true); $line_options = $extraparams["subtotal"] ?? array(); } $langs->load('subtotals'); $line_color = $object->getSubtotalColors((int) $line->qty); $colspan = 7; if (isModEnabled('productbatch')) { $colspan++; } if (isModEnabled('stock')) { $colspan++; } print ''; if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) { print '' . ($i + 1) . ''; } if ($line->qty > 0) { ?> >qty - 1) * 8); ?> trans("ShowUPOnPDF"), 'invoicing'); } if (array_key_exists('titleshowtotalexludingvatonpdf', $line_options)) { echo '  %'; } if (array_key_exists('titleforcepagebreak', $line_options)) { echo ' ' . img_picto($langs->trans("ForcePageBreak"), 'file'); } ?> qty < 0) { ?> colspan=""> trans("ShowTotalExludingVATOnPDF") . '">%'; } ?> '; echo ''; if (!colorIsLight($line_color)) { echo img_delete('default', 'class="pictodelete" style="color: white"'); } else { echo img_delete('default', 'class="pictodelete" style="color: #666"'); } echo ' '; } print "";