1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

Fix a bug with 100% discount. v4

This commit is contained in:
Dmitry Mamontov 2018-01-22 18:40:06 +03:00 committed by GitHub
parent 02e6beb385
commit 45779bac5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -645,7 +645,7 @@ class RetailCrmHistory
}
}
if (isset($itemCost) && $itemCost > 0) {
if (isset($itemCost) && $itemCost >= 0) {
$item->setField('CUSTOM_PRICE', 'Y');
$item->setField('PRICE', $itemCost);
$item->setField('DISCOUNT_NAME', '');
@ -1258,4 +1258,4 @@ class RetailUser extends CUser
}
}
}
}
}