修复发票管理,删除发票 代码少了一个] bug

Signed-off-by: 红日工作室 <1375011211@qq.com>
This commit is contained in:
红日工作室 2022-10-20 17:29:27 +00:00 committed by Gitee
parent 986a61a0b1
commit 24509d66d1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -428,7 +428,7 @@ class Invoice extends BaseController
public function delete()
{
$id = get_params("id");
$status = InvoiceList::where(['id' => $id)->value('check_status');
$status = InvoiceList::where(['id' => $id])->value('check_status');
if ($status == 2) {
return to_assign(1, "已审核的发票不能删除");
}