1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00

Prevent updating archived invoice

This commit is contained in:
Hillel Coren 2016-10-06 11:05:35 +03:00
parent 43eca6eee0
commit 2baf342c85

View File

@ -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;