Prevent updating archived invoice
This commit is contained in:
parent
43eca6eee0
commit
2baf342c85
1 changed files with 4 additions and 0 deletions
|
|
@ -1316,6 +1316,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