创建药品订单时,新增了药品明细的实际金额字段
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// 退款
|
||||
|
||||
Reference in New Issue
Block a user