Revision 5432e92c
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
631 | 631 |
|
632 | 632 |
$report->set_options('raw_bottom_info_text' => $raw_bottom_info_text); |
633 | 633 |
|
634 |
setup_gl_transactions_action_bar(num_rows => scalar(@{$form->{GL}})); |
|
635 |
|
|
636 |
$report->generate_with_headers(); |
|
634 |
$report->generate_with_headers(action_bar_setup_hook => sub { setup_gl_transactions_action_bar(report_generator_actions => \@_) }); |
|
637 | 635 |
|
638 | 636 |
$main::lxdebug->leave_sub(); |
639 | 637 |
} |
... | ... | |
1030 | 1028 |
submit => [ '#form', { action => 'continue', nextsub => 'generate_report' } ], |
1031 | 1029 |
accesskey => 'enter', |
1032 | 1030 |
], |
1031 |
|
|
1032 |
'separator', |
|
1033 |
|
|
1034 |
combobox => [ |
|
1035 |
action => [ t8('Add') ], |
|
1036 |
|
|
1037 |
link => [ |
|
1038 |
t8('GL Transaction'), |
|
1039 |
link => [ 'gl.pl?action=add' ], |
|
1040 |
disabled => $::auth->assert('gl_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1041 |
], |
|
1042 |
|
|
1043 |
link => [ |
|
1044 |
t8('AR Transaction'), |
|
1045 |
link => [ 'ar.pl?action=add' ], |
|
1046 |
disabled => $::auth->assert('ar_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1047 |
], |
|
1048 |
|
|
1049 |
link => [ |
|
1050 |
t8('AP Transaction'), |
|
1051 |
link => [ 'ap.pl?action=add' ], |
|
1052 |
disabled => $::auth->assert('ap_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1053 |
], |
|
1054 |
], # end of combobox "Add" |
|
1033 | 1055 |
); |
1034 | 1056 |
} |
1035 | 1057 |
} |
... | ... | |
1039 | 1061 |
|
1040 | 1062 |
for my $bar ($::request->layout->get('actionbar')) { |
1041 | 1063 |
$bar->add( |
1064 |
@{ $params{report_generator_actions} }, |
|
1065 |
|
|
1042 | 1066 |
combobox => [ |
1043 |
action => [ $::locale->text('Create new') ], |
|
1044 |
action => [ |
|
1045 |
$::locale->text('GL Transaction'), |
|
1046 |
submit => [ '#create_new_form', { action => 'gl_transaction' } ], |
|
1047 |
], |
|
1048 |
action => [ |
|
1049 |
$::locale->text('AR Transaction'), |
|
1050 |
submit => [ '#create_new_form', { action => 'ar_transaction' } ], |
|
1051 |
], |
|
1052 |
action => [ |
|
1053 |
$::locale->text('AP Transaction'), |
|
1054 |
submit => [ '#create_new_form', { action => 'ap_transaction' } ], |
|
1067 |
action => [ $::locale->text('Add') ], |
|
1068 |
|
|
1069 |
link => [ |
|
1070 |
t8('GL Transaction'), |
|
1071 |
link => [ 'gl.pl?action=add' ], |
|
1072 |
disabled => $::auth->assert('gl_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1055 | 1073 |
], |
1056 |
action => [ |
|
1057 |
$::locale->text('Sales Invoice'), |
|
1058 |
submit => [ '#create_new_form', { action => 'sales_invoice' } ], |
|
1074 |
|
|
1075 |
link => [ |
|
1076 |
t8('AR Transaction'), |
|
1077 |
link => [ 'ar.pl?action=add' ], |
|
1078 |
disabled => $::auth->assert('ar_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1059 | 1079 |
], |
1060 |
action => [ |
|
1061 |
$::locale->text('Vendor Invoice'), |
|
1062 |
submit => [ '#create_new_form', { action => 'vendor_invoice' } ], |
|
1080 |
|
|
1081 |
link => [ |
|
1082 |
t8('AP Transaction'), |
|
1083 |
link => [ 'ap.pl?action=add' ], |
|
1084 |
disabled => $::auth->assert('ap_transactions', 1) ? undef : t8('You do not have the permissions to access this function.'), |
|
1063 | 1085 |
], |
1064 |
], # end of combobox "Create new"
|
|
1086 |
], # end of combobox "Add"
|
|
1065 | 1087 |
); |
1066 | 1088 |
} |
1067 | 1089 |
} |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Finanzbuchhaltung« → »Buchungsjournal« umgestellt