From: Moritz Bunkus Date: Thu, 13 Jan 2011 13:15:59 +0000 (+0100) Subject: $form->prepare_for_printing beherrscht auch die Ausgabe für einen Drucker X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~15 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=576b67fd3937f1b00a64a550c5514f1646a89d43;p=kivitendo-erp.git $form->prepare_for_printing beherrscht auch die Ausgabe für einen Drucker --- diff --git a/SL/Form.pm b/SL/Form.pm index 90c8c9b99..56dc795e1 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -3535,7 +3535,7 @@ sub prepare_for_printing { $self->{formname} ||= $self->{type}; $self->{media} ||= 'email'; - die "'media' other than 'email' or 'file' is not supported yet" unless $self->{media} =~ m/^(?:email|file)$/; + die "'media' other than 'email', 'file', 'printer' is not supported yet" unless $self->{media} =~ m/^(?:email|file|printer)$/; # set shipto from billto unless set my $has_shipto = any { $self->{"shipto$_"} } qw(name street zipcode city country contact);