Fix: uniformize code
This commit is contained in:
parent
582d4d21b7
commit
be28754feb
@ -1572,7 +1572,7 @@ class CommonObject
|
||||
|
||||
if (($line->product_type == 9 && ! empty($line->special_code)) || ! empty($line->fk_parent_line))
|
||||
{
|
||||
if (empty($line->fk_parent_line)) $object->hooks[$line->special_code]->printOriginObjectLine($this,$line,$i);
|
||||
if (empty($line->fk_parent_line)) $object->hooks[$line->special_code]->printOriginObjectLine($this,$line,$var,$i);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1657,10 +1657,10 @@ class CommonObject
|
||||
$this->tpl['description'] = ' ';
|
||||
}
|
||||
|
||||
$this->tpl['vat_rate'] = vatrate($line->tva_tx);
|
||||
$this->tpl['vat_rate'] = vatrate($line->tva_tx, true);
|
||||
$this->tpl['price'] = price($line->subprice);
|
||||
$this->tpl['qty'] = (($line->info_bits & 2) != 2) ? $line->qty : ' ';
|
||||
$this->tpl['remise_percent'] = (($line->info_bits & 2) != 2) ? $line->remise_percent.'%' : ' ';
|
||||
$this->tpl['remise_percent'] = (($line->info_bits & 2) != 2) ? vatrate($line->remise_percent, true) : ' ';
|
||||
|
||||
include(DOL_DOCUMENT_ROOT.'/core/tpl/originproductline.tpl.php');
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<tr <?php echo $bc[$var]; ?>>
|
||||
<td><?php echo $this->tpl['label']; ?></td>
|
||||
<td><?php echo $this->tpl['description']; ?></td>
|
||||
<td align="right"><?php echo $this->tpl['vat_rate']; ?>%</td>
|
||||
<td align="right"><?php echo $this->tpl['vat_rate']; ?></td>
|
||||
<td align="right"><?php echo $this->tpl['price']; ?></td>
|
||||
<td align="right"><?php echo $this->tpl['qty']; ?></td>
|
||||
<td align="right"><?php echo $this->tpl['remise_percent']; ?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user