From 4196d71d727993a9fd5f44b7ac700c92767d36ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Tue, 26 Nov 2024 14:00:35 +0100 Subject: [PATCH] OX6-164 - Fixed small problems with invoice items --- lib/fcporequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fcporequest.php b/lib/fcporequest.php index 6e8527d..d885842 100755 --- a/lib/fcporequest.php +++ b/lib/fcporequest.php @@ -1025,7 +1025,7 @@ public function addProductInfo($oOrder, $aPositions = false, $blDebit = false) if ($oOrder->oxorder__oxpaycost->value != 0 && ($aPositions === false || ($blDebit === false || array_key_exists('oxpaycost', $aPositions) !== false))) { $sPayDesc = $oLang->translateString('FCPO_DEDUCTION', null, false); if ($oOrder->oxorder__oxpaycost->value > 0) { - $sPayDesc .= $oLang->translateString('FCPO_SURCHARGE', null, false); + $sPayDesc = $oLang->translateString('FCPO_SURCHARGE', null, false); } $sPayDesc .= ' ' . str_replace(':', '', $oLang->translateString('FCPO_PAYMENTTYPE', null, false)); @@ -1464,7 +1464,7 @@ protected function _fcpoAddBasketItemsFromSession($sDeliverySetId = false) if ($sPaymentCosts != 0) { $sPayDesc = $oLang->translateString('FCPO_DEDUCTION', null, false); if ($sPaymentCosts > 0) { - $sPayDesc .= $oLang->translateString('FCPO_SURCHARGE', null, false); + $sPayDesc = $oLang->translateString('FCPO_SURCHARGE', null, false); } $sPayDesc .= ' ' . str_replace(':', '', $oLang->translateString('FCPO_PAYMENTTYPE', null, false));