From 8aac6c2b50d66844d1513e5de00d2349a072553e Mon Sep 17 00:00:00 2001 From: hdm Date: Wed, 20 Jul 2022 15:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E5=88=A0=E9=99=A4bug?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/finance/controller/Invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/finance/controller/Invoice.php b/app/finance/controller/Invoice.php index 00e5bfe..14b2931 100644 --- a/app/finance/controller/Invoice.php +++ b/app/finance/controller/Invoice.php @@ -451,10 +451,10 @@ class Invoice extends BaseController { $id = get_params("id"); $detail = $this->detail($id); - if ($detail['invoice_status'] == 2) { + if ($detail['status'] == 2) { return to_assign(1, "已审核的发票不能删除"); } - if ($detail['invoice_status'] == 3) { + if ($detail['status'] == 3) { return to_assign(1, "已开具的发票不能删除"); } $data['status'] = '-1';