Skip to content

Commit

Permalink
OX6-164 - Fixed small problems with invoice items
Browse files Browse the repository at this point in the history
  • Loading branch information
FatchipRobert committed Nov 26, 2024
1 parent 1dd39d0 commit 4196d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fcporequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit 4196d71

Please sign in to comment.