更新生成购车协议条件
This commit is contained in:
@@ -70,11 +70,11 @@ require_once APPPATH.'controllers/wxapp/Wxapp.php';
|
||||
<div>经充分协商,双方约定:</div>
|
||||
<div>{$fill_info['sa']}</div>";
|
||||
}
|
||||
$show_car_pro = true;
|
||||
if($this->order_row['brand_id'] == 4) { //除宁德哪吒需要购车合同
|
||||
$this->load->model("biz/biz_model");
|
||||
$biz = $this->biz_model->get(['id'=>$this->$row['biz_id']],'city_id');
|
||||
$show_car_pro = $biz['city_id'] == '350900' ? true : false;
|
||||
$show_car_pro = false;
|
||||
if($this->order_row['brand_id'] == 1) { //除了东风,其他品牌都不用生成 购车协议
|
||||
// $this->load->model("biz/biz_model");
|
||||
// $biz = $this->biz_model->get(['id'=>$this->$row['biz_id']],'city_id');
|
||||
$show_car_pro = true;
|
||||
}
|
||||
if($show_car_pro) {
|
||||
//2022-12-23至2023-01-01使用 car_tpl_tmp.pdf内容
|
||||
|
||||
@@ -598,10 +598,11 @@ class Orders_v2_entity{
|
||||
if($this->ci->receiver_order_contracts_model->count(['o_id'=>$oid,'status'=>1])){
|
||||
return ['code'=>1,'msg'=>'操作成功'];
|
||||
}
|
||||
$need_sign = true;
|
||||
if($this->order_row['brand_id'] == 4){ //除宁德哪吒需要购车合同
|
||||
$biz = $this->ci->biz_model->get(['id'=>$this->order_row['biz_id']],'city_id');
|
||||
$need_sign = $biz['city_id'] == '350900' ? true : false;
|
||||
$need_sign = false;
|
||||
if($this->order_row['brand_id'] == 1){ //除了东风,其他品牌都不用生成 购车协议
|
||||
// $biz = $this->ci->biz_model->get(['id'=>$this->order_row['biz_id']],'city_id');
|
||||
// $need_sign = $biz['city_id'] == '350900' ? true : false;
|
||||
$need_sign = true;
|
||||
}
|
||||
$fill_info = $this->pdf_data($this->order_row);
|
||||
$this->ci->load->library('pdftk');
|
||||
|
||||
Reference in New Issue
Block a user