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

Merge branch 'dev' into 'next'

Dev

See merge request !11
Übergeordnete 260dcab3 1d0784e9
Keine zugehörigen Branchen gefunden
Tags 1.3.0
2 Merge Requests!12Next,!11Dev
Pipeline-Nr. 4961 bestanden
......@@ -312,6 +312,21 @@ public function getShippingPriceFactor(
return null;
}
/**
* @param AbstractOrder $Order
* @return QUI\ERP\Products\Interfaces\PriceFactorInterface|null
*
* @deprecated use getShippingPriceFactor
*/
public function getShippingPriceFactorByOrder(
AbstractOrder $Order
): ?QUI\ERP\Products\Interfaces\PriceFactorInterface {
QUI\System\Log::addNotice(
'Shipping->getShippingPriceFactorByOrder() is deprecated, use getShippingPriceFactor'
);
return $this->getShippingPriceFactor($Order);
}
/**
* Get all valid shipping entries for an erp entity
*
......@@ -326,9 +341,7 @@ public function getValidShippingEntries(QUI\ERP\ErpEntityInterface $Entity): arr
$shippingList = [];
foreach ($userShipping as $ShippingEntry) {
if ($Entity instanceof QUI\ERP\ErpEntityInterface) {
$ShippingEntry->setErpEntity($Entity);
}
$ShippingEntry->setErpEntity($Entity);
if (
$ShippingEntry->isValid()
......@@ -342,6 +355,19 @@ public function getValidShippingEntries(QUI\ERP\ErpEntityInterface $Entity): arr
return $shippingList;
}
/**
* @param AbstractOrder $Order
* @return Types\ShippingEntry[]
* @deprecated use getValidShippingEntries
*/
public function getValidShippingEntriesByOrder(AbstractOrder $Order): array
{
QUI\System\Log::addNotice(
'Shipping->getValidShippingEntriesByOrder() is deprecated, use getValidShippingEntries'
);
return $this->getValidShippingEntries($Order);
}
/**
* Return the unit field ids, for the shipping rule definition
*
......
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