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