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

Don’t allow activating recurring invoice if start date is blank

This commit is contained in:
Hillel Coren 2017-06-05 17:53:21 +03:00
parent 8f9068ad84
commit ab0d6ae4b2
3 changed files with 5 additions and 1 deletions

View File

@ -87,7 +87,6 @@ class ActivityRepository
'activities.created_at',
'activities.contact_id',
'activities.activity_type_id',
'activities.is_system',
'activities.balance',
'activities.adjustment',
'activities.notes',

View File

@ -2266,6 +2266,7 @@ $LANG = array(
'google_analytics' => 'Google Analytics',
'analytics_key' => 'Analytics Key',
'analytics_key_help' => 'Track payments using :link',
'start_date_required' => 'The start date is required',
);

View File

@ -1345,6 +1345,10 @@
function onMarkSentClick() {
if (model.invoice().is_recurring()) {
if (! model.invoice().start_date()) {
swal("{{ trans('texts.start_date_required') }}");
return false;
}
if (!isSaveValid()) {
model.showClientForm();
return false;