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:
parent
8f9068ad84
commit
ab0d6ae4b2
@ -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',
|
||||
|
@ -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',
|
||||
|
||||
);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user