Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit f3ed7538 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: correct return types

Übergeordneter c59e3896
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!19Update 'next-3.x' with latest changes from 'main',!15Next 2.x
Pipeline-Nr. 9219 mit Warnungen bestanden
......@@ -4,6 +4,7 @@
use QUI;
use QUI\ERP\Accounting\CalculationValue;
use QUI\ERP\Accounting\PriceFactors\Factor as ErpPriceFactor;
use QUI\ERP\Order\AbstractOrder;
use QUI\ERP\Shipping\Shipping;
use QUI\Exception;
......@@ -127,12 +128,12 @@ public static function getPayPalShippingAddressDataByOrder(AbstractOrder $Order)
* Get shipping costs by order
*
* @param AbstractOrder $Order
* @return PriceFactorInterface|false - Shipping cost (2 digit precision) or false if costs cannot be determined
* @return ErpPriceFactor|PriceFactorInterface|null - Shipping cost (2 digit precision) or false if costs cannot be determined
*/
public static function getShippingCostsByOrder(AbstractOrder $Order): bool|PriceFactorInterface
public static function getShippingCostsByOrder(AbstractOrder $Order): ErpPriceFactor|PriceFactorInterface|null
{
if (!QUI::getPackageManager()->isInstalled('quiqqer/shipping')) {
return false;
return null;
}
return Shipping::getInstance()->getShippingPriceFactor($Order);
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren