my ($self) = @_;
my $qty = $::form->parse_amount(\%::myconfig, $::form->{qty});
-
- if ($qty < 0) {
+ if (!$qty) {
+ flash_later('error', t8('Cannot stock without amount'));
+ } elsif ($qty < 0) {
flash_later('error', t8('Cannot stock negative amounts'));
} else {
# do stock
'Cannot save preferences!' => 'Einstellungen können nicht gespeichert werden!',
'Cannot save quotation!' => 'Angebot kann nicht gespeichert werden!',
'Cannot stock negative amounts' => 'Negative Mengen können nicht eingelagert werden!',
+ 'Cannot stock without amount' => 'Kann nicht ohne Menge einlagern!',
'Cannot storno invoice for a closed period!' => 'Das Rechnungsdatum der zu stornierenden Rechnung fällt in einen abgeschlossenen Zeitraum!',
'Cannot storno storno invoice!' => 'Kann eine Stornorechnung nicht stornieren',
'Cannot transfer. <br> Reason:<br>#1' => 'Kann nicht auslagern. <br>Grund:<br>#1',
<input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
<input type="hidden" name="follow_up_rowcount" value="1">
+<input type="hidden" name="show_details" value="[% show_details | html %]">
<p><div class="listtop" width="100%">[% title %]</div></p>
}
//-->
</script>
-
- <input type="hidden" name="webdav" value="[% webdav %]">
+ <input type="hidden" name="webdav" value="[% webdav | html %]">