wugg преди 5 месеца
родител
ревизия
a2bc1f7c3f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/cxinv/controller/InvoiceItem.php

+ 1 - 1
app/cxinv/controller/InvoiceItem.php

@@ -226,7 +226,7 @@ class InvoiceItem extends Base{
         try{
             $this->model->saveAll($temop);
             $this->model->whereIn('id',$remove)->delete();
-            $ist = $this->model->where([['hpNo',"=",$inoviceCode[0]],["amount","<",0]])->count();
+            $ist = $this->model->where([['invoiceCode',"=",$inoviceCode[0]],["amount","<",0]])->count();
             if($ist==0){
                 $pinv->status=11;
                 $pinv->save();