This commit is contained in:
Yuri Kuznetsov
2024-09-15 13:01:35 +03:00
parent 7d5ceb3c61
commit 9e30e60fb1
140 changed files with 359 additions and 718 deletions
@@ -82,8 +82,7 @@ class CurrencyConverted implements Di\MetadataAware, Di\ConfigAware
if ($defaultCurrency === $currency) {
$targetValue = $value;
}
else {
} else {
$targetValue = $value;
$targetValue = $targetValue / (isset($rates[$baseCurrency]) ? $rates[$baseCurrency] : 1.0);
$targetValue = $targetValue * (isset($rates[$currency]) ? $rates[$currency] : 1.0);
+1 -2
View File
@@ -62,8 +62,7 @@ class Webhook
if ($entity->isNew()) {
$this->webhookManager->processCreate($entity);
}
else {
} else {
$this->webhookManager->processUpdate($entity);
}
}