orderv2 zero_first_pay display

This commit is contained in:
qianhy
2023-03-30 15:24:44 +08:00
committed by lccsw
parent 2804ba500b
commit 75815f721f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -568,7 +568,7 @@ class CusorderV2 extends Wxapp
$car_data['平台售价'] = $money_json['price_car'];
$money_json['price_coplus'] && $car_data['公司加价'] = sprintf("%.2f", $money_json['price_coplus']);
$money_json['price_color'] && $car_data['颜色加价'] = sprintf("%.2f", $money_json['price_color']);
$if_zero_firstpay && $car_data['0首付'] = '是';
$if_zero_firstpay && $car_data['首付'] = '是';
!$if_zero_firstpay && $car_data['定金'] = sprintf("%.2f", $money_json['price_book']);
$car_price_list = [];
$money_json['price_discount'] && $car_price_list['优惠'] = sprintf("%.2f", $money_json['price_discount']);
@@ -898,7 +898,7 @@ class CusorderV2 extends Wxapp
$payway = $val['payway'];
$deposit = $money_json['price_book'];
$if_zero_firstpay = $payway == 0 && !$deposit ? 1 : 0;
$if_zero_firstpay && $other_data['0首付'] = ['type' => 'text', 'value' => '是', 'bg_color' => ''];
$if_zero_firstpay && $other_data['首付'] = ['type' => 'text', 'value' => '是', 'bg_color' => ''];
$book_is_pay_text = $book_is_pay['status'] ? '已支付' : '未支付';
$price_book_text = number_format($money_json['price_book'], 2) . "($book_is_pay_text)";
!$if_zero_firstpay && $other_data['定金金额'] = ['type' => 'text', 'value' => $price_book_text, 'bg_color' => ''];
@@ -303,7 +303,7 @@ class Orders_v2_entity{
];
$if_zero_firstpay && $sub_data['status'] = 1; // 0首付强制为已支付
$if_zero_firstpay && $sub_data['pay_time'] = date('Y-m-d H:i:s'); // 0首付强制支付时间
$if_zero_firstpay && $sub_data['descrip'] = '0首付';
$if_zero_firstpay && $sub_data['descrip'] = '首付';
$entrust_user['id'] && $sub_data['entrust_uid'] = $entrust_user['id'];
$uid && $sub_data['uid'] = $uid;
$res = $this->ci->app_liche_orders_model->add($sub_data);