// Recalculate price per item, if purchase unit is set
if ($queryAdditionalInfo['purchaseunit'
] != 0
) { $grossPrice /=
$queryAdditionalInfo['purchaseunit'
];
$netPrice /=
$queryAdditionalInfo['purchaseunit'
];
} if (empty($this->sSYSTEM->sCurrency
['factor'
])) { $this->sSYSTEM->sCurrency
['factor'
] = 1;
} if ($queryAdditionalInfo['pricegroupActive'
]) { $grossPrice =
$this->moduleManager->
Articles()->
sGetPricegroupDiscount( $this->sSYSTEM->sUSERGROUP,
$queryAdditionalInfo['pricegroupID'
],
$grossPrice,
$quantity,
false
);
$grossPrice =
$this->moduleManager->
Articles()->
sRound($grossPrice);
if (($this->config->
get('sARTICLESOUTPUTNETTO'
) && !
$this->sSYSTEM->sUSERGROUPDATA
['tax'
]) || (!
$this->sSYSTEM->sUSERGROUPDATA
['tax'
] &&
$this->sSYSTEM->sUSERGROUPDATA
['id'
]) ) { $netPrice =
$this->moduleManager->
Articles()->
sRound(