更新生成购车协议条件
This commit is contained in:
@@ -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