Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bea8e7d9

Von Tamino Steinert vor 3 Monaten hinzugefügt

FIX: S:C:DeliveryOrder: Fehlermeldung bei 'Auslagern über Standardlager'

Nutze verwendetes Lager in Fehlermeldung. Standardlager des Artikels
wurde vorher immer genommen.

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
34 34
use SL::DB::ValidityToken;
35 35
use SL::DB::EmailJournal;
36 36
use SL::DB::Warehouse;
37
use SL::DB::Bin;
37 38
use SL::DB::Helper::RecordLink qw(set_record_link_conversions RECORD_ID RECORD_TYPE_REF RECORD_ITEM_ID RECORD_ITEM_TYPE_REF);
38 39
use SL::DB::Helper::TypeDataProxy;
39 40
use SL::DB::Helper::Record qw(get_object_name_from_type get_class_from_type);
......
1246 1247
      my $max_qty = sum0(map {$_->{qty}} @grouped_qty);
1247 1248
      if ($max_qty < $parts_qty{$part_id}) {
1248 1249
        $parts_errors{$part_id}{missing_qty} = $parts_qty{$part_id} - $max_qty;
1250
        $parts_errors{$part_id}{bin_id}      = $bin_id;
1249 1251
      }
1250 1252

  
1251 1253
      next if $parts_errors{$part_id};
......
1285 1287
        $self->js->error(t8('No standard bin set for #1.', $part->displayable_name));
1286 1288
      }
1287 1289
      if ($parts_errors{$part_id}{missing_qty}) {
1290
        my $bin = SL::DB::Manager::Bin->find_by(
1291
          id => $parts_errors{$part_id}{bin_id}
1292
        );
1288 1293
        $self->js->error(
1289
          t8('There are #1 of "#2" missing from the standard bin #3 for transfer.',
1290
            $parts_errors{$part_id}{missing_qty}, $part->displayable_name, $part->bin->full_description));
1294
          t8('There are #1 of "#2" missing from the bin #3 for transfer.',
1295
            $parts_errors{$part_id}{missing_qty}, $part->displayable_name, $bin->full_description));
1291 1296
      }
1292 1297
      if ($parts_errors{$part_id}{multiple_options}){
1293 1298
        push @multiple_options, $part;
locale/de/all
4344 4344
  'Then go to the database administration and chose "create database".' => 'Dann gehen Sie in den Datenbankverwaltung, und wählen Sie dort "Datenbank anlegen" aus.',
4345 4345
  'There are #1 more open invoices for this customer with other currencies.' => 'Es gibt #1 weitere offene Rechnungen für diesen Kunden, die in anderen Währungen ausgestellt wurden.',
4346 4346
  'There are #1 more open invoices from this vendor with other currencies.' => 'Es gibt #1 weitere offene Rechnungen von diesem Lieferanten, die in anderen Währungen ausgestellt wurden.',
4347
  'There are #1 of "#2" missing from the standard bin #3 for transfer.' => 'Es fehlen #1 von "#2" auf dem Standard-Lagerplatz #3 zum Auslagern',
4347
  'There are #1 of "#2" missing from the bin #3 for transfer.' => 'Es fehlen #1 von "#2" auf dem Lagerplatz #3 zum Auslagern',
4348 4348
  'There are #1 unfinished follow-ups of which #2 are due.' => 'Es gibt #1 Wiedervorlage(n), von denen #2 fällig ist/sind.',
4349 4349
  'There are Bins defined in your Inventory.' => 'Unter Stammdaten/Waren sind Lagerplätze definiert.',
4350 4350
  'There are Bins defined in your master data.' => 'Unter Stammdaten/Waren sind Lagerplätze defininert',
locale/en/all
4342 4342
  'Then go to the database administration and chose "create database".' => '',
4343 4343
  'There are #1 more open invoices for this customer with other currencies.' => '',
4344 4344
  'There are #1 more open invoices from this vendor with other currencies.' => '',
4345
  'There are #1 of "#2" missing from the standard bin #3 for transfer.' => '',
4345
  'There are #1 of "#2" missing from the bin #3 for transfer.' => '',
4346 4346
  'There are #1 unfinished follow-ups of which #2 are due.' => '',
4347 4347
  'There are Bins defined in your Inventory.' => '',
4348 4348
  'There are Bins defined in your master data.' => '',

Auch abrufbar als: Unified diff