Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 73a404b5

Von Bernd Blessmann vor mehr als 14 Jahren hinzugefügt

  • ID 73a404b58ebe0de883558b898ee07ae3499461b7
  • Vorgänger 4c6a0cbb
  • Nachfolger 684e4405

MHD-Behandlung in Fehlermeldung bei unzureichender Lagermenge.

Der Fehlertext wird jetzt unterschiedich erzeugt, je nachdem,
ob show_bestbefore in der config an oder aus ist.

Unterschiede anzeigen:

bin/mozilla/do.pl
1310 1310
        my $pinfo = $part_info_map{$request->{parts_id}};
1311 1311
        my $binfo = $bin_info_map{$request->{bin_id}};
1312 1312

  
1313
        push @{ $form->{ERRORS} }, $locale->text("There is not enough available of '#1' at warehouse '#2', bin '#3', #4, #5, for the transfer of #6.",
1314
                                                 $pinfo->{description}, $binfo->{warehouse_description}, $binfo->{bin_description},
1315
                                                 $request->{chargenumber} ? $locale->text('chargenumber #1', $request->{chargenumber}) : $locale->text('no chargenumber'),
1316
                                                 $request->{bestbefore} ? $locale->text('bestbefore #1', $request->{bestbefore}) : $locale->text('no bestbefore'),
1317
                                                 $form->format_amount_units('amount'      => $request->{sum_base_qty},
1318
                                                                            'part_unit'   => $pinfo->{unit},
1319
                                                                            'conv_units'  => 'convertible_not_smaller'));
1313
        if ($main::show_best_before) {
1314
            push @{ $form->{ERRORS} }, $locale->text("There is not enough available of '#1' at warehouse '#2', bin '#3', #4, #5, for the transfer of #6.",
1315
                                                     $pinfo->{description},
1316
                                                     $binfo->{warehouse_description},
1317
                                                     $binfo->{bin_description},
1318
                                                     $request->{chargenumber} ? $locale->text('chargenumber #1', $request->{chargenumber}) : $locale->text('no chargenumber'),
1319
                                                     $request->{bestbefore} ? $locale->text('bestbefore #1', $request->{bestbefore}) : $locale->text('no bestbefore'),
1320
                                                     $form->format_amount_units('amount'      => $request->{sum_base_qty},
1321
                                                                                'part_unit'   => $pinfo->{unit},
1322
                                                                                'conv_units'  => 'convertible_not_smaller'));
1323
        } else {
1324
            push @{ $form->{ERRORS} }, $locale->text("There is not enough available of '#1' at warehouse '#2', bin '#3', #4, for the transfer of #5.",
1325
                                                     $pinfo->{description},
1326
                                                     $binfo->{warehouse_description},
1327
                                                     $binfo->{bin_description},
1328
                                                     $request->{chargenumber} ? $locale->text('chargenumber #1', $request->{chargenumber}) : $locale->text('no chargenumber'),
1329
                                                     $form->format_amount_units('amount'      => $request->{sum_base_qty},
1330
                                                                                'part_unit'   => $pinfo->{unit},
1331
                                                                                'conv_units'  => 'convertible_not_smaller'));
1332
        }
1320 1333
      }
1321 1334
    }
1322 1335

  

Auch abrufbar als: Unified diff