finance目录下invoice控制器下delete方法[ ]未闭合,修复代码失误导致的bug
This commit is contained in:
parent
986a61a0b1
commit
0287d3a05c
@ -428,7 +428,7 @@ class Invoice extends BaseController
|
|||||||
public function delete()
|
public function delete()
|
||||||
{
|
{
|
||||||
$id = get_params("id");
|
$id = get_params("id");
|
||||||
$status = InvoiceList::where(['id' => $id)->value('check_status');
|
$status = InvoiceList::where(['id' => $id])->value('check_status');
|
||||||
if ($status == 2) {
|
if ($status == 2) {
|
||||||
return to_assign(1, "已审核的发票不能删除");
|
return to_assign(1, "已审核的发票不能删除");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user