Revision 0902f8fe
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
$report->add_separator();
|
||
$report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
|
||
|
||
setup_ap_transactions_action_bar();
|
||
$report->generate_with_headers();
|
||
$report->generate_with_headers(action_bar_setup_hook => sub { setup_ap_transactions_action_bar(report_generator_actions => \@_) });
|
||
|
||
$main::lxdebug->leave_sub();
|
||
}
|
||
... | ... | |
submit => [ '#form', { action => "ap_transactions" } ],
|
||
accesskey => 'enter',
|
||
],
|
||
|
||
'separator',
|
||
|
||
combobox => [
|
||
action => [ t8('Add') ],
|
||
link => [
|
||
t8('Purchase Invoice'),
|
||
link => [ 'ir.pl?action=add' ],
|
||
disabled => $::auth->assert('vendor_invoice_edit', 1) ? undef : t8('You do not have the permissions to access this function.'),
|
||
],
|
||
link => [
|
||
t8('AP Transaction'),
|
||
link => [ 'ap.pl?action=add' ],
|
||
disabled => $::auth->assert('ap_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'),
|
||
],
|
||
], # end of combobox "Add"
|
||
);
|
||
}
|
||
}
|
||
... | ... | |
|
||
for my $bar ($::request->layout->get('actionbar')) {
|
||
$bar->add(
|
||
@{ $params{report_generator_actions} },
|
||
|
||
combobox => [
|
||
action => [ t8('Add') ],
|
||
link => [
|
||
t8('Purchase Invoice'),
|
||
link => [ 'ir.pl?action=add' ],
|
||
link => [ 'ir.pl?action=add' ],
|
||
disabled => $::auth->assert('vendor_invoice_edit', 1) ? undef : t8('You do not have the permissions to access this function.'),
|
||
],
|
||
link => [
|
||
t8('AP Transaction'),
|
||
link => [ 'ap.pl?action=add' ],
|
||
link => [ 'ap.pl?action=add' ],
|
||
disabled => $::auth->assert('ap_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'),
|
||
],
|
||
], # end of combobox "Add"
|
||
);
|
menus/user/00-erp.yaml | ||
---|---|---|
action: search
|
||
type: purchase_delivery_order
|
||
- parent: ap
|
||
id: ap_add_vendor_invoice
|
||
name: Add Vendor Invoice
|
||
id: ap_vendor_invoices_ap_transactions
|
||
name: Vendor Invoices & AP Transactions
|
||
order: 400
|
||
access: client/allow_new_purchase_invoice & vendor_invoice_edit
|
||
module: ir.pl
|
||
access: vendor_invoice_edit
|
||
module: ap.pl
|
||
params:
|
||
action: add
|
||
type: invoice
|
||
action: search
|
||
- parent: ap
|
||
id: ap_letters
|
||
name: Letters
|
||
... | ... | |
name: Reports
|
||
icon: ap_report
|
||
order: 500
|
||
- parent: ap_reports
|
||
id: ap_reports_vendor_invoices_ap_transactions
|
||
name: Vendor Invoices & AP Transactions
|
||
order: 400
|
||
access: vendor_invoice_edit
|
||
module: ap.pl
|
||
params:
|
||
action: search
|
||
- parent: ap_reports
|
||
id: ap_reports_delivery_plan
|
||
name: Delivery Plan
|
||
... | ... | |
module: gl.pl
|
||
params:
|
||
action: add
|
||
- parent: general_ledger
|
||
id: general_ledger_add_ap_transaction
|
||
name: Add AP Transaction
|
||
icon: ap_transaction_add
|
||
order: 300
|
||
access: ap_transactions
|
||
module: ap.pl
|
||
params:
|
||
action: add
|
||
- parent: general_ledger
|
||
id: general_ledger_datev_export_assistent
|
||
name: DATEV - Export Assistent
|
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Einkauf« → »Einkaufsrechnungen & Debitorenbuchungen« umgestellt