!11 修复发票管理,删除发票错误 bug

Merge pull request !11
This commit is contained in:
勾股技术 2022-10-21 01:07:14 +00:00 committed by Gitee
commit 71e9fcc79f
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, "已审核的发票不能删除");
}