Merge pull request #48 from KMityai/master

fixed updating order
This commit is contained in:
Alex Lushpai 2019-08-23 11:05:24 +03:00 committed by GitHub
commit 5f64051fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -730,6 +730,7 @@ class RetailcrmHistory
$orderDetail->unit_price_tax_excl = $productPrice;
$orderDetail->unit_price_tax_incl = ($productPrice + $productPrice / 100 * $tax->rate);
$orderDetail->original_product_price = $productPrice;
$orderDetail->id_warehouse = !empty($orderToUpdate->id_warehouse) ? $orderToUpdate->id_warehouse : 0;
$orderDetail->save();
unset($orderDetail);
unset($order['items'][$key]);