Revision 93e78f47
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
- ID 93e78f47ff035469d88ccdb9ffb152a6a2483806
- Vorgänger b65a8b5c
SL/Controller/Inventory.pm | ||
---|---|---|
367 | 367 |
|
368 | 368 |
$report->set_options('raw_bottom_info_text' => $self->render('inventory/report_bottom', { output => 0 }) ); |
369 | 369 |
} |
370 |
$report->generate_with_headers(); |
|
370 |
|
|
371 |
$report->generate_with_headers(action_bar_setup_hook => sub { $self->setup_usage_action_bar(report_generator_actions => \@_) }); |
|
371 | 372 |
|
372 | 373 |
$main::lxdebug->leave_sub(); |
373 | 374 |
|
... | ... | |
648 | 649 |
submit => [ '#form', { action => 'Inventory/usage' } ], |
649 | 650 |
accesskey => 'enter', |
650 | 651 |
], |
652 |
|
|
653 |
'separator', |
|
654 |
|
|
655 |
combobox => [ |
|
656 |
action => [ t8('Warehouse') ], |
|
657 |
|
|
658 |
link => [ |
|
659 |
t8('Stock'), |
|
660 |
link => $self->url_for(action => 'stock_in'), |
|
661 |
], |
|
662 |
|
|
663 |
link => [ |
|
664 |
t8('Produce Assembly'), |
|
665 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
666 |
], |
|
667 |
|
|
668 |
link => [ |
|
669 |
t8('Transfer'), |
|
670 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
671 |
], |
|
672 |
|
|
673 |
link => [ |
|
674 |
t8('Removal'), |
|
675 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
676 |
], |
|
677 |
|
|
678 |
], # end of combobox "Warehouse" |
|
679 |
); |
|
680 |
} |
|
681 |
} |
|
682 |
|
|
683 |
sub setup_usage_action_bar { |
|
684 |
my ($self, %params) = @_; |
|
685 |
|
|
686 |
for my $bar ($::request->layout->get('actionbar')) { |
|
687 |
$bar->add( |
|
688 |
@{ $params{report_generator_actions} }, |
|
689 |
|
|
690 |
combobox => [ |
|
691 |
action => [ t8('Warehouse') ], |
|
692 |
|
|
693 |
link => [ |
|
694 |
t8('Stock'), |
|
695 |
link => $self->url_for(action => 'stock_in'), |
|
696 |
], |
|
697 |
|
|
698 |
link => [ |
|
699 |
t8('Produce Assembly'), |
|
700 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
701 |
], |
|
702 |
|
|
703 |
link => [ |
|
704 |
t8('Transfer'), |
|
705 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
706 |
], |
|
707 |
|
|
708 |
link => [ |
|
709 |
t8('Removal'), |
|
710 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
711 |
], |
|
712 |
|
|
713 |
], # end of combobox "Warehouse" |
|
651 | 714 |
); |
652 | 715 |
} |
653 | 716 |
} |
bin/mozilla/wh.pl | ||
---|---|---|
740 | 740 |
$report->set_options('raw_bottom_info_text' => $form->parse_html_template('common/paginate', |
741 | 741 |
{ 'pages' => $pages , 'base_url' => $href.'&sort='.$form->{sort}.'&order='.$form->{order}}) ); |
742 | 742 |
} |
743 |
$report->generate_with_headers(); |
|
743 |
$report->generate_with_headers(action_bar_setup_hook => sub { setup_wh_generate_journal_action_bar(report_generator_actions => \@_) });
|
|
744 | 744 |
|
745 | 745 |
$main::lxdebug->leave_sub(); |
746 | 746 |
} |
... | ... | |
973 | 973 |
{'pages' => $pages , 'base_url' => $href}) ); |
974 | 974 |
} |
975 | 975 |
|
976 |
$report->generate_with_headers(); |
|
976 |
$report->generate_with_headers(action_bar_setup_hook => sub { setup_wh_generate_report_action_bar(report_generator_actions => \@_) });
|
|
977 | 977 |
|
978 | 978 |
$main::lxdebug->leave_sub(); |
979 | 979 |
} |
... | ... | |
1140 | 1140 |
} |
1141 | 1141 |
|
1142 | 1142 |
sub setup_wh_report_action_bar { |
1143 |
my ($action) = @_; |
|
1144 |
|
|
1145 | 1143 |
for my $bar ($::request->layout->get('actionbar')) { |
1146 | 1144 |
$bar->add( |
1147 | 1145 |
action => [ |
... | ... | |
1149 | 1147 |
submit => [ '#form', { action => 'generate_report' } ], |
1150 | 1148 |
accesskey => 'enter', |
1151 | 1149 |
], |
1150 |
|
|
1151 |
'separator', |
|
1152 |
|
|
1153 |
combobox => [ |
|
1154 |
action => [ t8('Warehouse') ], |
|
1155 |
|
|
1156 |
link => [ |
|
1157 |
t8('Stock'), |
|
1158 |
link => 'controller.pl?action=Inventory/stock_in', |
|
1159 |
], |
|
1160 |
|
|
1161 |
link => [ |
|
1162 |
t8('Produce Assembly'), |
|
1163 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
1164 |
], |
|
1165 |
|
|
1166 |
link => [ |
|
1167 |
t8('Transfer'), |
|
1168 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
1169 |
], |
|
1170 |
|
|
1171 |
link => [ |
|
1172 |
t8('Removal'), |
|
1173 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
1174 |
], |
|
1175 |
|
|
1176 |
], # end of combobox "Warehouse" |
|
1152 | 1177 |
); |
1153 | 1178 |
} |
1154 | 1179 |
} |
1155 | 1180 |
|
1156 |
sub setup_wh_journal_action_bar { |
|
1157 |
my ($action) = @_; |
|
1181 |
sub setup_wh_generate_report_action_bar { |
|
1182 |
my (%params) = @_; |
|
1183 |
|
|
1184 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1185 |
$bar->add( |
|
1186 |
@{ $params{report_generator_actions} }, |
|
1187 |
|
|
1188 |
combobox => [ |
|
1189 |
action => [ t8('Warehouse') ], |
|
1190 |
|
|
1191 |
link => [ |
|
1192 |
t8('Stock'), |
|
1193 |
link => 'controller.pl?action=Inventory/stock_in', |
|
1194 |
], |
|
1195 |
|
|
1196 |
link => [ |
|
1197 |
t8('Produce Assembly'), |
|
1198 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
1199 |
], |
|
1200 |
|
|
1201 |
link => [ |
|
1202 |
t8('Transfer'), |
|
1203 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
1204 |
], |
|
1205 |
|
|
1206 |
link => [ |
|
1207 |
t8('Removal'), |
|
1208 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
1209 |
], |
|
1210 |
|
|
1211 |
], # end of combobox "Warehouse" |
|
1212 |
); |
|
1213 |
} |
|
1214 |
} |
|
1158 | 1215 |
|
1216 |
sub setup_wh_journal_action_bar { |
|
1159 | 1217 |
for my $bar ($::request->layout->get('actionbar')) { |
1160 | 1218 |
$bar->add( |
1161 | 1219 |
action => [ |
... | ... | |
1163 | 1221 |
submit => [ '#form', { action => 'generate_journal' } ], |
1164 | 1222 |
accesskey => 'enter', |
1165 | 1223 |
], |
1224 |
|
|
1225 |
'separator', |
|
1226 |
|
|
1227 |
combobox => [ |
|
1228 |
action => [ t8('Warehouse') ], |
|
1229 |
|
|
1230 |
link => [ |
|
1231 |
t8('Stock'), |
|
1232 |
link => 'controller.pl?action=Inventory/stock_in', |
|
1233 |
], |
|
1234 |
|
|
1235 |
link => [ |
|
1236 |
t8('Produce Assembly'), |
|
1237 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
1238 |
], |
|
1239 |
|
|
1240 |
link => [ |
|
1241 |
t8('Transfer'), |
|
1242 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
1243 |
], |
|
1244 |
|
|
1245 |
link => [ |
|
1246 |
t8('Removal'), |
|
1247 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
1248 |
], |
|
1249 |
|
|
1250 |
], # end of combobox "Warehouse" |
|
1251 |
); |
|
1252 |
} |
|
1253 |
} |
|
1254 |
|
|
1255 |
sub setup_wh_generate_journal_action_bar { |
|
1256 |
my (%params) = @_; |
|
1257 |
|
|
1258 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1259 |
$bar->add( |
|
1260 |
@{ $params{report_generator_actions} }, |
|
1261 |
|
|
1262 |
combobox => [ |
|
1263 |
action => [ t8('Warehouse') ], |
|
1264 |
|
|
1265 |
link => [ |
|
1266 |
t8('Stock'), |
|
1267 |
link => 'controller.pl?action=Inventory/stock_in', |
|
1268 |
], |
|
1269 |
|
|
1270 |
link => [ |
|
1271 |
t8('Produce Assembly'), |
|
1272 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=assembly', |
|
1273 |
], |
|
1274 |
|
|
1275 |
link => [ |
|
1276 |
t8('Transfer'), |
|
1277 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=transfer', |
|
1278 |
], |
|
1279 |
|
|
1280 |
link => [ |
|
1281 |
t8('Removal'), |
|
1282 |
link => 'wh.pl?action=transfer_warehouse_selection&trans_type=removal', |
|
1283 |
], |
|
1284 |
|
|
1285 |
], # end of combobox "Warehouse" |
|
1166 | 1286 |
); |
1167 | 1287 |
} |
1168 | 1288 |
} |
menus/user/00-erp.yaml | ||
---|---|---|
302 | 302 |
icon: warehouse |
303 | 303 |
order: 400 |
304 | 304 |
- parent: warehouse |
305 |
id: warehouse_stock |
|
306 |
name: Stock |
|
307 |
order: 100 |
|
308 |
access: warehouse_management |
|
309 |
params: |
|
310 |
action: Inventory/stock_in |
|
311 |
- parent: warehouse |
|
312 |
id: warehouse_produce_assembly |
|
313 |
name: Produce Assembly |
|
314 |
icon: assembly_produce |
|
315 |
order: 200 |
|
316 |
access: warehouse_management |
|
317 |
module: wh.pl |
|
318 |
params: |
|
319 |
action: transfer_warehouse_selection |
|
320 |
trans_type: assembly |
|
321 |
- parent: warehouse |
|
322 |
id: warehouse_transfer |
|
323 |
name: Transfer |
|
324 |
order: 300 |
|
325 |
access: warehouse_management |
|
326 |
module: wh.pl |
|
327 |
params: |
|
328 |
action: transfer_warehouse_selection |
|
329 |
trans_type: transfer |
|
330 |
- parent: warehouse |
|
331 |
id: warehouse_removal |
|
332 |
name: Removal |
|
333 |
order: 400 |
|
334 |
access: warehouse_management |
|
335 |
module: wh.pl |
|
336 |
params: |
|
337 |
action: transfer_warehouse_selection |
|
338 |
trans_type: removal |
|
339 |
- parent: warehouse |
|
340 |
id: warehouse_reports |
|
341 |
name: Reports |
|
342 |
order: 500 |
|
343 |
- parent: warehouse_reports |
|
344 |
id: warehouse_reports_warehouse_content |
|
305 |
id: warehouse_warehouse_content |
|
345 | 306 |
name: Warehouse content |
346 | 307 |
order: 100 |
347 | 308 |
access: warehouse_contents | warehouse_management |
348 | 309 |
module: wh.pl |
349 | 310 |
params: |
350 | 311 |
action: report |
351 |
- parent: warehouse_reports
|
|
352 |
id: warehouse_reports_whjournal
|
|
312 |
- parent: warehouse |
|
313 |
id: warehouse_whjournal |
|
353 | 314 |
name: WHJournal |
354 | 315 |
order: 200 |
355 | 316 |
access: warehouse_management |
356 | 317 |
module: wh.pl |
357 | 318 |
params: |
358 | 319 |
action: journal |
359 |
- parent: warehouse_reports
|
|
360 |
id: warehouse_reports_whusage
|
|
320 |
- parent: warehouse |
|
321 |
id: warehouse_whusage |
|
361 | 322 |
name: WHUsage |
362 | 323 |
icon: warehouse_usage |
363 | 324 |
order: 300 |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Lager« → * umgestellt