Prevent updating archived invoice

This commit is contained in:
Hillel Coren 2016-10-06 11:05:04 +03:00
parent 32f341f448
commit ce07764388

View File

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