diff --git a/platform/modules/v1/controllers/ErpController.php b/platform/modules/v1/controllers/ErpController.php index 646e2de..7f365e8 100644 --- a/platform/modules/v1/controllers/ErpController.php +++ b/platform/modules/v1/controllers/ErpController.php @@ -78,7 +78,7 @@ class ErpController extends Controller 'productSku' => $vv['drug_no'], 'quantity' => $vv['number'], 'paymentPrice' => $vv['price'], - 'price' => round($vv['number'] * $vv['price'], 2) + 'price' => round($vv['number'] * $vv['buy_price'], 2) ]; } $erpData[$k]['orderItems'] = $orderItems;