From 920228fe4859a1e8444450dd84c2875ac9fe2e64 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 18 Feb 2025 11:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8D=AF=E5=93=81=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E4=B8=AD=E8=8D=AF=E5=93=81=E5=8D=95=E4=BB=B7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientOrderService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index 017347e..04702b0 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -3500,6 +3500,14 @@ class PatientOrderService extends BaseService } } + foreach ($product_datas as &$product_data){ + $product_data["actual_product_price"] = bcdiv( + $product_data['actual_product_price'], + $product_data['actual_quantity'], + 2 + ); + } + return $product_datas; } } \ No newline at end of file