Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 93e78f47

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 93e78f47ff035469d88ccdb9ffb152a6a2483806
  • Vorgänger b65a8b5c

Menüvereinheitlichung: »Lager« → * umgestellt

Unterschiede anzeigen:

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
}

Auch abrufbar als: Unified diff