更新生成购车协议条件

This commit is contained in:
lccsw
2023-06-01 16:37:07 +08:00
parent d6807455f2
commit b1f9bbd834
2 changed files with 10 additions and 9 deletions
@@ -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');