// Calculate global discount
if ($this->sSYSTEM->sUSERGROUPDATA
['mode'
] &&
$this->sSYSTEM->sUSERGROUPDATA
['discount'
]) { $price -= ($price / 100 *
$this->sSYSTEM->sUSERGROUPDATA
['discount'
]);
} if ($this->sSYSTEM->sCurrency
['factor'
]) { $price *=
(float) $this->sSYSTEM->sCurrency
['factor'
];
} // Condition Output-Netto AND NOT overwrite by customer-group
// OR Output-Netto NOT SET AND tax-settings provided by customer-group
if (!
$this->sSYSTEM->sUSERGROUPDATA
['tax'
] &&
$this->sSYSTEM->sUSERGROUPDATA
['id'
]) { $price =
$this->
sFormatPrice($price);
} else { $price =
$this->
sFormatPrice(round($price *
(100 +
$tax) / 100, 3
));
} return $price;
} /**
* @param int $taxId
*
* @return string|false
*/