|
@@ -24,7 +24,7 @@ class Payinv extends Base{
|
|
|
if (!$valid->check($params))return error($valid->getError());
|
|
|
$isT = $this->model->where(["payNo"=>$params['InvCode'],"status"=>[1,2,3,4]])->findOrEmpty();
|
|
|
if (!$isT->isEmpty())return error("该发票单号已存在");
|
|
|
- $invoice = \app\cxinv\model\Invoice::where("InvCode'",$params['InvCode'])->findOrEmpty();
|
|
|
+ $invoice = \app\cxinv\model\Invoice::where("InvCode",$params['InvCode'])->findOrEmpty();
|
|
|
if ($invoice->isEmpty())return error("该发票单号不存在");
|
|
|
if ($invoice->status!=2)return error("该发票单号状态不正确");
|
|
|
$hpNo=makeNo('hp');
|