Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 45823f3f

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 45823f3f9c9322bf575784c54b67859c1213a810
  • Vorgänger 854d733e
  • Nachfolger e0e425b7

Records: js-save Aufrufe angepasst und vereinheitlicht

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
action => [
t8('Save'),
id => 'save_action',
call => [ 'kivi.DeliveryOrder.save', { action => 'save',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'save',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate,
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.')
: $self->order->delivered ? t8('This record has already been delivered.')
: undef,
],
action => [
t8('Save as new'),
call => [ 'kivi.DeliveryOrder.save', { action => 'save_as_new',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'save_as_new',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.')
: $self->type eq 'supplier_delivery_order' ? t8('Need a workflow for Supplier Delivery Order')
: $self->type eq 'rma_delivery_order' ? t8('Need a workflow for RMA Delivery Order.')
......
],
action => [
t8('Save and Delivery Order'),
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_delivery_order',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'save_and_delivery_order',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate,
}],
only_if => $self->type_data->show_menu("save_and_delivery_order"),
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
],
action => [
t8('Save and Invoice'),
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_invoice',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'save_and_invoice',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
}],
only_if => $self->type_data->show_menu("save_and_invoice"),
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
],
action => [
t8('Save and AP Transaction'),
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_ap_transaction',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'save_and_ap_transaction',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
}],
only_if => $self->type_data->show_menu("save_and_ap_transaction"),
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
],
......
],
action => [
t8('Save and preview PDF'),
call => [ 'kivi.DeliveryOrder.save', { action => 'preview_pdf',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'preview_pdf',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate,
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
],
action => [
......
action => [
t8('Save and E-mail'),
id => 'save_and_email_action',
call => [ 'kivi.DeliveryOrder.save', { action => 'save_and_show_email_dialog',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate },
],
call => [ 'kivi.DeliveryOrder.save', {
action => 'save_and_show_email_dialog',
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts,
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate,
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.')
: !$self->order->id ? t8('This object has not been saved yet.')
: undef,
......
action => [
t8('Transfer out'),
id => 'transfer_out_action',
call => [ 'kivi.DeliveryOrder.save', { action => 'transfer_stock' } ],
call => [ 'kivi.DeliveryOrder.save', {
action => 'transfer_stock',
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.')
: !$self->order->id ? t8('This object has not been saved yet.')
: $self->order->delivered ? t8('The parts for this order have already been transferred')
......
action => [
t8('Transfer in'),
id => 'transfer_in_action',
call => [ 'kivi.DeliveryOrder.save', { action => 'transfer_stock' } ],
call => [ 'kivi.DeliveryOrder.save', {
action => 'transfer_stock',
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.')
: !$self->order->id ? t8('This object has not been saved yet.')
: $self->order->delivered ? t8('The parts for this order have already been transferred')
......
action => [
t8('Undo Transfer'),
id => 'undo_transfer_action',
call => [ 'kivi.DeliveryOrder.save', { action => 'undo_transfers' } ],
call => [ 'kivi.DeliveryOrder.save', {
action => 'undo_transfers',
}],
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.')
: !$self->order->id ? t8('This object has not been saved yet.')
: undef,

Auch abrufbar als: Unified diff