|
@@ -36,7 +36,7 @@
|
|
|
* $type, $text, $description, $line
|
|
|
*/
|
|
|
|
|
|
-global $forceall, $senderissupplier, $inputalsopricewithtax, $usemargins;
|
|
|
+global $forceall, $senderissupplier, $inputalsopricewithtax, $usemargins, $outputalsopricetotalwithtax;
|
|
|
|
|
|
$usemargins=0;
|
|
|
if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($object->element,array('facture','propal','commande'))) $usemargins=1;
|
|
@@ -45,6 +45,7 @@ if (empty($dateSelector)) $dateSelector=0;
|
|
|
if (empty($forceall)) $forceall=0;
|
|
|
if (empty($senderissupplier)) $senderissupplier=0;
|
|
|
if (empty($inputalsopricewithtax)) $inputalsopricewithtax=0;
|
|
|
+if (empty($outputalsopricetotalwithtax)) $outputalsopricetotalwithtax=0;
|
|
|
if (empty($usemargins)) $usemargins=0;
|
|
|
?>
|
|
|
<?php $coldisplay=0; ?>
|
|
@@ -203,6 +204,10 @@ if (empty($usemargins)) $usemargins=0;
|
|
|
<td align="right" class="linecolutotalht_currency nowrap"><?php $coldisplay++; ?><?php echo price($line->multicurrency_total_ht); ?></td>
|
|
|
<?php } ?>
|
|
|
<?php } ?>
|
|
|
+ <?php if ($outputalsopricetotalwithtax) { ?>
|
|
|
+ <td align="right" class="liencolht nowrap"><?php $coldisplay++; ?><?php echo price($line->total_ttc); ?></td>
|
|
|
+ <?php } ?>
|
|
|
+
|
|
|
|
|
|
<?php
|
|
|
if ($this->statut == 0 && ($object_rights->creer)) { ?>
|