X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Foe.pl;h=f19a2876c1d1254b9cb05249f0e148d7ddc75915;hb=69e526ee5cfc3d153f738083b397a000c00c4468;hp=2d89a05d749c5d89061e637c47f0ac6bddd174bd;hpb=cded3d3b31801ce01a075d6c56ea3c48552562a6;p=kivitendo-erp.git diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 2d89a05d7..f19a2876c 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -358,26 +358,30 @@ sub setup_oe_action_bar { combobox => [ action => [ t8('Workflow') ], - (action => [ + action => [ t8('Sales Order'), submit => [ '#form', { action => "sales_order" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, - ]) x !!$params{is_sales_quo}, - (action => [ + only_if => $params{is_sales_quo}, + ], + action => [ t8('Purchase Order'), submit => [ '#form', { action => "sales_order" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, - ]) x !!$params{is_req_quo}, - (action => [ + only_if => $params{is_req_quo}, + ], + action => [ t8('Delivery Order'), submit => [ '#form', { action => "delivery_order" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, - ]) x ($params{is_sales_ord} || $params{is_pur_ord}), - (action => [ + only_if => $params{is_sales_ord} || $params{is_pur_ord}, + ], + action => [ t8('Invoice'), submit => [ '#form', { action => "invoice" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, - ]) x !!$allow_invoice, + only_if => $allow_invoice, + ], action => [ t8('Quotation'), submit => [ '#form', { action => "quotation" } ], @@ -402,6 +406,12 @@ sub setup_oe_action_bar { call => [ 'kivi.SalesPurchase.show_email_dialog' ], checks => [ @req_trans_desc ], ], + action => [ + t8('Download attachments of all parts'), + call => [ 'kivi.File.downloadOrderitemsFiles', $::form->{type}, $::form->{id} ], + disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, + only_if => $::instance_conf->get_doc_storage, + ], ], #end of combobox "Export" combobox => [ @@ -1257,7 +1267,7 @@ sub orders { $report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal')); setup_oe_orders_action_bar(); - $report->generate_with_headers(action_bar => 1); + $report->generate_with_headers(); $main::lxdebug->leave_sub(); }