Revision 06806380
Von Bernd Bleßmann vor etwa 6 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
1395 | 1395 |
combobox => [ |
1396 | 1396 |
action => [ |
1397 | 1397 |
t8('Save'), |
1398 |
call => [ 'kivi.Order.save', $::instance_conf->get_order_warn_duplicate_parts ], |
|
1398 |
call => [ 'kivi.Order.save', 'save', $::instance_conf->get_order_warn_duplicate_parts ],
|
|
1399 | 1399 |
checks => [ 'kivi.Order.check_save_active_periodic_invoices' ], |
1400 | 1400 |
], |
1401 | 1401 |
action => [ |
1402 | 1402 |
t8('Save as new'), |
1403 |
call => [ 'kivi.Order.save_as_new', $::instance_conf->get_order_warn_duplicate_parts ], |
|
1403 |
call => [ 'kivi.Order.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ],
|
|
1404 | 1404 |
checks => [ 'kivi.Order.check_save_active_periodic_invoices' ], |
1405 | 1405 |
disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, |
1406 | 1406 |
], |
1407 | 1407 |
action => [ |
1408 | 1408 |
t8('Save and Delivery Order'), |
1409 |
call => [ 'kivi.Order.save_and_delivery_order', $::instance_conf->get_order_warn_duplicate_parts ], |
|
1409 |
call => [ 'kivi.Order.save', 'save_and_delivery_order', $::instance_conf->get_order_warn_duplicate_parts ],
|
|
1410 | 1410 |
checks => [ 'kivi.Order.check_save_active_periodic_invoices' ], |
1411 | 1411 |
only_if => (any { $self->type eq $_ } (_sales_order_type(), _purchase_order_type())) |
1412 | 1412 |
], |
1413 | 1413 |
action => [ |
1414 | 1414 |
t8('Save and Invoice'), |
1415 |
call => [ 'kivi.Order.save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ], |
|
1415 |
call => [ 'kivi.Order.save', 'save_and_invoice', $::instance_conf->get_order_warn_duplicate_parts ],
|
|
1416 | 1416 |
checks => [ 'kivi.Order.check_save_active_periodic_invoices' ], |
1417 | 1417 |
], |
1418 | 1418 |
], # end of combobox "Save" |
Auch abrufbar als: Unified diff
Auftrags-Controller: Mini-Refactoring: js-save-Funktionen zusammengefasst