|
|
@ -52,19 +52,24 @@ class CompanyRelationModel extends Model
|
|
|
|
"is_payment"=>$res['is_payment'],
|
|
|
|
"is_payment"=>$res['is_payment'],
|
|
|
|
"invoice_content"=>$res['invoice_content']
|
|
|
|
"invoice_content"=>$res['invoice_content']
|
|
|
|
];
|
|
|
|
];
|
|
|
|
if($res["first_company_type"] == $company_type){
|
|
|
|
|
|
|
|
$s = ($res['collection'] == 1 ? "是" : "否");
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$s = ($res['collection'] == 2 ? "是" : "否");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$senddata["collection"] = $s;
|
|
|
|
|
|
|
|
if($type){
|
|
|
|
if($type){
|
|
|
|
|
|
|
|
if($res["first_company_type"] == $company_type){
|
|
|
|
|
|
|
|
$s = ($res['collection'] == 1 ? "是" : "否");
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$s = ($res['collection'] == 2 ? "是" : "否");
|
|
|
|
|
|
|
|
}
|
|
|
|
$senddata["invoice_type"] = $this->InvoiceType[$res['invoice_type']];
|
|
|
|
$senddata["invoice_type"] = $this->InvoiceType[$res['invoice_type']];
|
|
|
|
$senddata["settlement_type"] = $this->SettlementType[$res['settlement_type']];
|
|
|
|
$senddata["settlement_type"] = $this->SettlementType[$res['settlement_type']];
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if($res["first_company_type"] == $company_type){
|
|
|
|
|
|
|
|
$s = ($res['collection'] == 1 ? 1 : 0);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$s = ($res['collection'] == 2 ? 1 : 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
$senddata["invoice_type"] = $res['invoice_type'];
|
|
|
|
$senddata["invoice_type"] = $res['invoice_type'];
|
|
|
|
$senddata["settlement_type"]=$res['settlement_type'];
|
|
|
|
$senddata["settlement_type"]=$res['settlement_type'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$senddata["collection"] = $s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $senddata;
|
|
|
|
return $senddata;
|
|
|
|
}
|
|
|
|
}
|
|
|
|