Fix admin order model (#64)

This commit is contained in:
Akolzin Dmitry 2017-11-21 13:02:47 +03:00 committed by GitHub
parent 6eecca5f93
commit 1bf6d6f41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,9 @@ class ModelRetailcrmOrder extends Model {
} }
$order['items'][] = array( $order['items'][] = array(
'productId' => !empty($offerId) ? $product['product_id'].'#'.$offerId : $product['product_id'], 'offer' => array(
'externalId' => !empty($offerId) ? $product['product_id'].'#'.$offerId : $product['product_id']
),
'productName' => $product['name'], 'productName' => $product['name'],
'initialPrice' => $product['price'], 'initialPrice' => $product['price'],
'quantity' => $product['quantity'], 'quantity' => $product['quantity'],