Prevent updating archived invoice
This commit is contained in:
parent
32f341f448
commit
ce07764388
1 changed files with 4 additions and 0 deletions
|
|
@ -1334,6 +1334,10 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
@if ($invoice->trashed())
|
||||
return false;
|
||||
@endif
|
||||
|
||||
// check invoice number is unique
|
||||
if ($('.invoice-number').hasClass('has-error')) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue