X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fbp.pl;h=2269ab4f1877e65faa47ca2ac1d38ec27e5c01aa;hb=a143b82a56e889cfda60c2d42fe7d0bdaf73aa83;hp=99f2a0416e31f510d1fffaf9a49c2df4a1f1de85;hpb=ee072e4f077213bf6f8792ca8f0a1afebbb6282f;p=kivitendo-erp.git
diff --git a/bin/mozilla/bp.pl b/bin/mozilla/bp.pl
index 99f2a0416..2269ab4f1 100644
--- a/bin/mozilla/bp.pl
+++ b/bin/mozilla/bp.pl
@@ -32,6 +32,7 @@
#======================================================================
use SL::BP;
+use Data::Dumper;
1;
@@ -160,14 +161,12 @@ sub search {
$button1 = qq|
text('button')
- . qq|> |
+ . $locale->text('button') . qq|>
|;
$button2 = qq|
text('button')
- . qq|> |
+ . $locale->text('button') . qq|>
|;
#write Trigger
@@ -312,6 +311,10 @@ sub yes {
sub print {
$lxdebug->enter_sub();
+ $form->get_lists(printers => 'ALL_PRINTERS');
+ # use the command stored in the databse or fall back to $myconfig{printer}
+ my $selected_printer = (grep { $_->{id} eq $form->{printer} } @{ $form->{ALL_PRINTERS} })[0]->{'printer_command'} || $myconfig{printer};
+
if ($form->{callback}) {
map { $form->{callback} .= "&checked_$_=1" if $form->{"checked_$_"} }
(1 .. $form->{rowcount});
@@ -320,7 +323,7 @@ sub print {
for $i (1 .. $form->{rowcount}) {
if ($form->{"checked_$i"}) {
- $form->{OUT} = "| $myconfig{printer}";
+ $form->{OUT} = "| $selected_printer";
$form->info($locale->text('Printing ... '));
if (BP->print_spool(\%myconfig, \%$form, $spool)) {
@@ -555,21 +558,29 @@ sub list_spool {
{password}>
|;
- if ($myconfig{printer}) {
+# if ($myconfig{printer}) {
print qq|
+{transdateto}>
+{transdatefrom}>
+{invnumber}>
+{ordnumber}>
+{quonumber}>
+{customer}>
+{vendor}>
-
+
|;
- }
- if ($form->{menubar}) {
- require "$form->{path}/menu.pl";
- &menubar;
- }
+$form->get_lists(printers=>"ALL_PRINTERS");
+print qq||;
+
+# }
print qq|
@@ -578,7 +589,7 @@ sub list_spool {