wugg 9 months ago
parent
commit
5e949bc613
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/admin/controller/OrderInv.php

+ 1 - 0
app/admin/controller/OrderInv.php

@@ -109,6 +109,7 @@ class OrderInv extends Base{
                     	Db::rollback();
                         return error_show(1004,"确认单{$value['sequenceNo']}待开票金额不足");
                     }
+                    if($qrd['is_comon']!=$is_comon) throw new \Exception("确认单{$value['sequenceNo']}类型有误");
                    $ainv = Db::name("invoice_pool")
                        ->alias("a")
                        ->leftJoin("invoice_good b", "a.invNo=b.invNo and b.is_del=0")