1
0
mirror of synced 2025-01-31 15:22:01 +03:00

fix orderHistory exception

This commit is contained in:
cyradin 2016-04-08 12:22:38 +03:00
parent 2380ce6108
commit 6fec60fdd2

View File

@ -898,6 +898,10 @@ else{
'COMMENTS' => self::fromJSON($order['managerComment'])
));
if (! date_create_from_format('Y-m-d H:i:s', $arFields['DATE_MARKED'])) {
unset($arFields['DATE_MARKED']);
}
if (isset($order['discount'])) {
$arFields['DISCOUNT_VALUE'] = $order['discount'];
$arFields['PRICE'] -= $order['discount'];