1
0
mirror of synced 2025-01-19 09:21:41 +03:00

поправлена передача скидки

This commit is contained in:
gorokh 2020-02-12 12:25:39 +03:00
parent 0c3fd7e491
commit 686548ab63

View File

@ -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') {