Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f27b1f48

Von Sven Schöling vor mehr als 4 Jahren hinzugefügt

  • ID f27b1f4819fac91b1dce3a7bf25945f479b7b908
  • Vorgänger c591d7cc
  • Nachfolger 7230b956

Inventory Helper: Fehlerhaften Aufruf mit croak abbrechen statt mit Excception

Unterschiede anzeigen:

SL/Helper/Inventory.pm
sub allocate {
my (%params) = @_;
die SL::X::Inventory::Allocation->new(
error => 'allocate needs a part',
msg => t8("Method allocate needs the parameter 'part'"),
) unless $params{part};
die SL::X::Inventory::Allocation->new(
error => 'allocate needs a qty',
msg => t8("Method allocate needs the parameter 'qty'"),
) unless $params{qty};
croak('allocate needs a qty') unless $params{part};
croak('allocate needs a qty') unless $params{qty};
my $part = $params{part};
my $qty = $params{qty};
locale/de/all
'Meta tag keywords' => 'Metatag Keywords',
'Meta tag title' => 'Metatag Titel',
'Method' => 'Verfahren',
'Method allocate needs the parameter \'part\'' => 'Es fehlt der Parameter \'part\'',
'Method allocate needs the parameter \'qty\'' => 'Es fehlt der Parameter \'qty\' oder die Menge ist 0',
'Microfiche' => 'Mikrofilm',
'Minimum Amount' => 'Mindestbetrag',
'Miscellaneous' => 'Verschiedenes',

Auch abrufbar als: Unified diff