1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 09:21:34 +02: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; return false;
} }
@if ($invoice->trashed())
return false;
@endif
// check invoice number is unique // check invoice number is unique
if ($('.invoice-number').hasClass('has-error')) { if ($('.invoice-number').hasClass('has-error')) {
return false; return false;