|
@@ -367,6 +367,17 @@ if (!empty($line->remise_percent) && $line->special_code != 3) {
|
|
|
$coldisplay++;
|
|
|
}
|
|
|
|
|
|
+// MMI Hack : Reduction
|
|
|
+if (!empty($conf->global->MMI_PRICE_REMISE_AFF)) {
|
|
|
+ if (!empty($line->remise_percent) && $line->special_code != 3) {
|
|
|
+ $price_reduced = price($sign * $line->subprice * (1-$line->remise_percent/100));
|
|
|
+ } else {
|
|
|
+ $price_reduced = price($sign * $line->subprice);
|
|
|
+ }
|
|
|
+ print '<td class="linecoluht_currency nowrap right">'.$price_reduced.'</td>';
|
|
|
+ $coldisplay++;
|
|
|
+}
|
|
|
+
|
|
|
// Fields for situation invoices
|
|
|
if (isset($this->situation_cycle_ref) && $this->situation_cycle_ref) {
|
|
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php';
|