Revision 0902f8fe
Von Moritz Bunkus vor etwa 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 |
); |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Einkauf« → »Einkaufsrechnungen & Debitorenbuchungen« umgestellt