发票删除bug修正

This commit is contained in:
hdm 2022-07-20 15:12:40 +08:00
parent aa451885a1
commit 8aac6c2b50

View File

@ -451,10 +451,10 @@ class Invoice extends BaseController
{ {
$id = get_params("id"); $id = get_params("id");
$detail = $this->detail($id); $detail = $this->detail($id);
if ($detail['invoice_status'] == 2) { if ($detail['status'] == 2) {
return to_assign(1, "已审核的发票不能删除"); return to_assign(1, "已审核的发票不能删除");
} }
if ($detail['invoice_status'] == 3) { if ($detail['status'] == 3) {
return to_assign(1, "已开具的发票不能删除"); return to_assign(1, "已开具的发票不能删除");
} }
$data['status'] = '-1'; $data['status'] = '-1';