mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:24:30 -04:00
Don’t show recurring start date change warning for new invoices
This commit is contained in:
parent
16750e83c2
commit
543e6c598a
@ -1337,17 +1337,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onSaveClick() {
|
function onSaveClick() {
|
||||||
if (model.invoice().is_recurring()) {
|
@if ($invoice->id)
|
||||||
if (model.invoice().start_date() != model.invoice().start_date_orig()) {
|
if (model.invoice().is_recurring()) {
|
||||||
var text = "{!! trans("texts.original_start_date") !!}: " + model.invoice().start_date_orig() + '\n'
|
if (model.invoice().start_date() != model.invoice().start_date_orig()) {
|
||||||
+ "{!! trans("texts.new_start_date") !!}: " + model.invoice().start_date();
|
var text = "{!! trans("texts.original_start_date") !!}: " + model.invoice().start_date_orig() + '\n'
|
||||||
var title = "{!! trans("texts.warn_start_date_changed") !!}";
|
+ "{!! trans("texts.new_start_date") !!}: " + model.invoice().start_date();
|
||||||
sweetConfirm(function() {
|
var title = "{!! trans("texts.warn_start_date_changed") !!}";
|
||||||
submitAction('');
|
sweetConfirm(function() {
|
||||||
}, text, title);
|
submitAction('');
|
||||||
return;
|
}, text, title);
|
||||||
}
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (!empty($autoBillChangeWarning))
|
@if (!empty($autoBillChangeWarning))
|
||||||
var text = "{!! trans('texts.warn_change_auto_bill') !!}";
|
var text = "{!! trans('texts.warn_change_auto_bill') !!}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user