Revision 0902f8fe
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
1106 | 1106 |
$report->add_separator(); |
1107 | 1107 |
$report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal')); |
1108 | 1108 |
|
1109 |
setup_ap_transactions_action_bar(); |
|
1110 |
$report->generate_with_headers(); |
|
1109 |
$report->generate_with_headers(action_bar_setup_hook => sub { setup_ap_transactions_action_bar(report_generator_actions => \@_) }); |
|
1111 | 1110 |
|
1112 | 1111 |
$main::lxdebug->leave_sub(); |
1113 | 1112 |
} |
... | ... | |
1155 | 1154 |
submit => [ '#form', { action => "ap_transactions" } ], |
1156 | 1155 |
accesskey => 'enter', |
1157 | 1156 |
], |
1157 |
|
|
1158 |
'separator', |
|
1159 |
|
|
1160 |
combobox => [ |
|
1161 |
action => [ t8('Add') ], |
|
1162 |
link => [ |
|
1163 |
t8('Purchase Invoice'), |
|
1164 |
link => [ 'ir.pl?action=add' ], |
|
1165 |
disabled => $::auth->assert('vendor_invoice_edit', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1166 |
], |
|
1167 |
link => [ |
|
1168 |
t8('AP Transaction'), |
|
1169 |
link => [ 'ap.pl?action=add' ], |
|
1170 |
disabled => $::auth->assert('ap_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1171 |
], |
|
1172 |
], # end of combobox "Add" |
|
1158 | 1173 |
); |
1159 | 1174 |
} |
1160 | 1175 |
} |
... | ... | |
1164 | 1179 |
|
1165 | 1180 |
for my $bar ($::request->layout->get('actionbar')) { |
1166 | 1181 |
$bar->add( |
1182 |
@{ $params{report_generator_actions} }, |
|
1183 |
|
|
1167 | 1184 |
combobox => [ |
1168 | 1185 |
action => [ t8('Add') ], |
1169 | 1186 |
link => [ |
1170 | 1187 |
t8('Purchase Invoice'), |
1171 |
link => [ 'ir.pl?action=add' ], |
|
1188 |
link => [ 'ir.pl?action=add' ], |
|
1189 |
disabled => $::auth->assert('vendor_invoice_edit', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1172 | 1190 |
], |
1173 | 1191 |
link => [ |
1174 | 1192 |
t8('AP Transaction'), |
1175 |
link => [ 'ap.pl?action=add' ], |
|
1193 |
link => [ 'ap.pl?action=add' ], |
|
1194 |
disabled => $::auth->assert('ap_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1176 | 1195 |
], |
1177 | 1196 |
], # end of combobox "Add" |
1178 | 1197 |
); |
menus/user/00-erp.yaml | ||
---|---|---|
261 | 261 |
action: search |
262 | 262 |
type: purchase_delivery_order |
263 | 263 |
- parent: ap |
264 |
id: ap_add_vendor_invoice
|
|
265 |
name: Add Vendor Invoice
|
|
264 |
id: ap_vendor_invoices_ap_transactions
|
|
265 |
name: Vendor Invoices & AP Transactions
|
|
266 | 266 |
order: 400 |
267 |
access: client/allow_new_purchase_invoice & vendor_invoice_edit
|
|
268 |
module: ir.pl
|
|
267 |
access: vendor_invoice_edit |
|
268 |
module: ap.pl
|
|
269 | 269 |
params: |
270 |
action: add |
|
271 |
type: invoice |
|
270 |
action: search |
|
272 | 271 |
- parent: ap |
273 | 272 |
id: ap_letters |
274 | 273 |
name: Letters |
... | ... | |
282 | 281 |
name: Reports |
283 | 282 |
icon: ap_report |
284 | 283 |
order: 500 |
285 |
- parent: ap_reports |
|
286 |
id: ap_reports_vendor_invoices_ap_transactions |
|
287 |
name: Vendor Invoices & AP Transactions |
|
288 |
order: 400 |
|
289 |
access: vendor_invoice_edit |
|
290 |
module: ap.pl |
|
291 |
params: |
|
292 |
action: search |
|
293 | 284 |
- parent: ap_reports |
294 | 285 |
id: ap_reports_delivery_plan |
295 | 286 |
name: Delivery Plan |
... | ... | |
386 | 377 |
module: gl.pl |
387 | 378 |
params: |
388 | 379 |
action: add |
389 |
- parent: general_ledger |
|
390 |
id: general_ledger_add_ap_transaction |
|
391 |
name: Add AP Transaction |
|
392 |
icon: ap_transaction_add |
|
393 |
order: 300 |
|
394 |
access: ap_transactions |
|
395 |
module: ap.pl |
|
396 |
params: |
|
397 |
action: add |
|
398 | 380 |
- parent: general_ledger |
399 | 381 |
id: general_ledger_datev_export_assistent |
400 | 382 |
name: DATEV - Export Assistent |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Einkauf« → »Einkaufsrechnungen & Debitorenbuchungen« umgestellt