added use VAT inclusion settings in price product

This commit is contained in:
gorokh 2019-07-15 15:48:20 +03:00
parent 1400687814
commit 30d7b1fac4
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,6 @@
## v2.3.2
* Добавлен учет настройки включения НДС в стоимость товара
## v2.3.1
* Исправлены баги, связанные с передачей заказов при их оформлении

View File

@ -1 +1 @@
2.3.1
2.3.2

View File

@ -441,6 +441,10 @@ class RetailCRM extends Module
'purchasePrice' => round($product['purchase_supplier_price'], 2)
);
if (true == Configuration::get('PS_TAX')) {
$item['initialPrice'] = round($product['product_price_wt'], 2);
}
if (isset($arProp)) {
$item['properties'] = $arProp;
}