|
@@ -58,10 +58,10 @@ class OrderInv extends BaseController{
|
|
|
// if($khNo==''){
|
|
|
// return error_show(1004,"参数 khNo 不能为空");
|
|
|
// }
|
|
|
-// $customer = Db::name("customer_info")->where(["companyNo"=>$khNo])->find();
|
|
|
-// if($customer==false){
|
|
|
-// return error_show(1004,"客户信息未找到");
|
|
|
-// }
|
|
|
+ $supplier = Db::name("supplier_info")->where(["code"=>$companyNo])->find();
|
|
|
+ if($supplier==false){
|
|
|
+ return error_show(1004,"业务公司信息未找到");
|
|
|
+ }
|
|
|
$invtype = isset($this->post['invtype'])&&$this->post['invtype']!=='' ? trim($this->post['invtype']):"";
|
|
|
if($invtype==''){
|
|
|
return error_show(1004,"参数 invtype 不能为空");
|
|
@@ -180,7 +180,7 @@ class OrderInv extends BaseController{
|
|
|
"invNo"=>$invNo,
|
|
|
"inv_value"=>$invfee,
|
|
|
"inv_out"=> $companyNo,
|
|
|
- "inv_company"=> $company['company_name'],
|
|
|
+ "inv_company"=> $supplier['name']??"",
|
|
|
"apply_id"=>$this->uid,
|
|
|
"apply_name"=>$this->uname,
|
|
|
"inv_type"=>$invtype,//发票类型 专用 普通 电子专用 电子普通 全电子票
|