创建药品订单时,新增了药品明细的实际金额字段

This commit is contained in:
2024-11-26 16:39:13 +08:00
parent d83ec385a7
commit 8afd0d91ed
4 changed files with 141 additions and 3 deletions
+38 -1
View File
@@ -467,7 +467,44 @@ class TestController extends AbstractController
}
public function test_17(){
// 测试计算药品订单明细实际金额
// $product_datas = array(
// array(
// "product_id" => 1,
// "product_price" => 10,
// "actual_product_price" => 10,
// "actual_quantity" => 2,
// ),
// array(
// "product_id" => 2,
// "product_price" => 20,
// "actual_product_price" => 20,
// "actual_quantity" => 2,
// ),
// array(
// "product_id" => 3,
// "product_price" => 5,
// "actual_product_price" => 5,
// "actual_quantity" => 2,
// ),
// );
//
// $coupons = array(
// array(
// "application_scope" => 1,
// "coupon_price" => 3,
// "product_id" => "",
// ),
// array(
// "application_scope" => 5,
// "coupon_price" => 1,
// "product_id" => "1",
// )
// );
//
// $PatientOrderService = new PatientOrderService();
// $product_datas = $PatientOrderService->calculateProductOrderItemActualPrice($product_datas,$coupons);
// dump($product_datas);
}
// 退款