null dicount
This commit is contained in:
parent
fae73904d2
commit
870c1f4a11
@ -854,7 +854,7 @@ class ICrmOrderActions
|
|||||||
'initialPrice' => (double) $p['PRICE'] + (double) $p['DISCOUNT_PRICE'],
|
'initialPrice' => (double) $p['PRICE'] + (double) $p['DISCOUNT_PRICE'],
|
||||||
//'purchasePrice' => $pr,
|
//'purchasePrice' => $pr,
|
||||||
'discount' => $p['DISCOUNT_PRICE'],
|
'discount' => $p['DISCOUNT_PRICE'],
|
||||||
//'discountPercent' => $p['DISCOUNT_VALUE'],
|
'discountPercent' => 0,
|
||||||
'quantity' => $p['QUANTITY'],
|
'quantity' => $p['QUANTITY'],
|
||||||
'productId' => $p['PRODUCT_ID'],
|
'productId' => $p['PRODUCT_ID'],
|
||||||
'productName' => self::toJSON($p['NAME'])
|
'productName' => self::toJSON($p['NAME'])
|
||||||
@ -928,7 +928,7 @@ class ICrmOrderActions
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
foreach($arr as $key => $value) {
|
foreach($arr as $key => $value) {
|
||||||
if(!$value || (is_array($value) && empty($value)))
|
if(($value !== 0) || ($value !== 0.0) || (is_array($value) && empty($value)))
|
||||||
unset($arr[$key]);
|
unset($arr[$key]);
|
||||||
|
|
||||||
if(is_array($value) && !empty($value))
|
if(is_array($value) && !empty($value))
|
||||||
|
Loading…
Reference in New Issue
Block a user