поправлена передача скидки
This commit is contained in:
parent
0c3fd7e491
commit
686548ab63
@ -212,6 +212,12 @@ class RetailCrmOrder
|
||||
$item['discountManualPercent'] = 0;
|
||||
$item['initialPrice'] = $initialPrice;
|
||||
|
||||
$dpItem = $product['BASE_PRICE'] - $product['PRICE'];
|
||||
if ( $dpItem > 0) {
|
||||
$item['discountManualAmount'] = $dpItem;
|
||||
$item['initialPrice'] = (double)$product['BASE_PRICE'];
|
||||
}
|
||||
|
||||
$order['items'][] = $item;
|
||||
|
||||
if ($send && $dimensionsSetting == 'Y') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user