Revision 452e195f
Von Bernd Bleßmann vor etwa 6 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
488 | 488 |
$config ||= SL::DB::Manager::PeriodicInvoicesConfig->find_by(oe_id => $::form->{id}) if $::form->{id}; |
489 | 489 |
$config ||= SL::DB::PeriodicInvoicesConfig->new(periodicity => 'm', |
490 | 490 |
order_value_periodicity => 'p', # = same as periodicity |
491 |
start_date_as_date => $::form->{transdate} || $::form->current_date, |
|
491 |
start_date_as_date => $::form->{transdate_as_date} || $::form->current_date,
|
|
492 | 492 |
extend_automatically_by => 12, |
493 | 493 |
active => 1, |
494 | 494 |
email_subject => GenericTranslations->get( |
js/kivi.Order.js | ||
---|---|---|
37 | 37 |
}; |
38 | 38 |
|
39 | 39 |
ns.check_valid_reqdate = function() { |
40 |
if ($('#order_reqdate').val() === '') { |
|
40 |
if ($('#order_reqdate_as_date').val() === '') {
|
|
41 | 41 |
alert(kivi.t8('Please select a delivery date.')); |
42 | 42 |
return false; |
43 | 43 |
} else { |
... | ... | |
631 | 631 |
|
632 | 632 |
kivi.popup_dialog({ |
633 | 633 |
url: 'controller.pl?action=Order/show_periodic_invoices_config_dialog', |
634 |
data: { type: $('#type').val(), |
|
635 |
id: $('#id').val(), |
|
636 |
config: $('#order_periodic_invoices_config').val(), |
|
637 |
customer_id: $('#order_customer_id').val(), |
|
638 |
transdate: $('#order_transdate').val(),
|
|
639 |
language_id: $('#language_id').val() |
|
634 |
data: { type: $('#type').val(),
|
|
635 |
id: $('#id').val(),
|
|
636 |
config: $('#order_periodic_invoices_config').val(),
|
|
637 |
customer_id: $('#order_customer_id').val(),
|
|
638 |
transdate_as_date: $('#order_transdate_as_date').val(),
|
|
639 |
language_id: $('#language_id').val()
|
|
640 | 640 |
}, |
641 | 641 |
id: 'jq_periodic_invoices_config_dialog', |
642 | 642 |
load: kivi.reinit_widgets, |
Auch abrufbar als: Unified diff
Auftrags-Controller: date_tags mit richtiger id ansprechen
Fehler kam rein mit:
commit 43e74053df32b26b2e2ec5059bebc60d47be753b
"Auftrags-Controller: date_tag mit _as_date füttern"