mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Merge pull request #20574 from atm-gauthier/NEW/Add_column_Total_HT_to_products_array_on_document_creation_card
New : add column total ht to products array on document creation card
This commit is contained in:
@@ -4948,6 +4948,7 @@ abstract class CommonObject
|
||||
print '<td class="left">'.$langs->trans('Unit').'</td>';
|
||||
}
|
||||
print '<td class="right">'.$langs->trans('ReductionShort').'</td>';
|
||||
print '<td class="linecolht right">'.$langs->trans('TotalHT').'</td>';
|
||||
print '<td class="center">'.$form->showCheckAddButtons('checkforselect', 1).'</td>';
|
||||
print '</tr>';
|
||||
$i = 0;
|
||||
@@ -5078,6 +5079,7 @@ abstract class CommonObject
|
||||
}
|
||||
|
||||
$this->tpl['price'] = price($line->subprice);
|
||||
$this->tpl['total_ht'] = price($line->total_ht);
|
||||
$this->tpl['multicurrency_price'] = price($line->multicurrency_subprice);
|
||||
$this->tpl['qty'] = (($line->info_bits & 2) != 2) ? $line->qty : ' ';
|
||||
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
||||
|
||||
@@ -41,6 +41,7 @@ if (!empty($conf->global->PRODUCT_USE_UNITS)) {
|
||||
}
|
||||
|
||||
print '<td class="right">'.$this->tpl['remise_percent'].'</td>';
|
||||
print '<td class="linecolht right">'.$this->tpl['total_ht'].'</td>';
|
||||
|
||||
$selected = 1;
|
||||
if (!empty($selectedLines) && !in_array($this->tpl['id'], $selectedLines)) {
|
||||
|
||||
Reference in New Issue
Block a user