1
0
mirror of synced 2024-11-22 05:16:09 +03:00

fixed getting product price from order basket

This commit is contained in:
Дмитрий 2019-10-03 11:29:46 +03:00
parent d06567ce7f
commit 3ea5e69e81

View File

@ -689,7 +689,12 @@ class RetailCrmHistory
}
if (array_key_exists('discountTotal', $product)) {
$itemCost = $item->getField('PRICE');
if (empty($itemCost)) {
$itemCost = $item->getField('BASE_PRICE');
}
$discount = (double) $item->getField('DISCOUNT_PRICE');
if (isset($itemCost) && $itemCost >= 0) {