diff options
-rwxr-xr-x | LedgerSMB/BP.pm | 8 | ||||
-rwxr-xr-x | bin/bp.pl | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/LedgerSMB/BP.pm b/LedgerSMB/BP.pm index 0a084798..d15dc018 100755 --- a/LedgerSMB/BP.pm +++ b/LedgerSMB/BP.pm @@ -75,7 +75,7 @@ sub get_vc { $sth = $dbh->prepare($query); $sth->execute($form->{type}); - ($n) = $sth->fetchrow_array($query); + ($n) = $sth->fetchrow_array; $count += $n; } @@ -97,7 +97,7 @@ sub get_vc { WHERE s.formname = ? AND s.spoolfile IS NOT NULL|; $union = "UNION"; - push @queryags, $form->{type}; + push @queryargs, $form->{type}; } $sth = $dbh->prepare($query); @@ -199,14 +199,14 @@ sub get_spoolfiles { $union SELECT a.id, vc.name, a.$invnumber AS invnumber, a.transdate, a.ordnumber, a.quonumber, $invoice AS invoice, - ? AS module, s.spoolfile + '$item' AS module, s.spoolfile FROM $item a, $form->{vc} vc, status s WHERE s.trans_id = a.id AND s.spoolfile IS NOT NULL AND s.formname = ? AND a.$form->{vc}_id = vc.id|; - push (@queryargs, $item, $form->{type}); + push (@queryargs, $form->{type}); if ($form->{"$form->{vc}_id"}) { $query .= qq| AND a.$form->{vc}_id = $form->{"$form->{vc}_id"}|; } else { @@ -432,7 +432,7 @@ sub list_spool { $column_data{transdate} = "<td>$ref->{transdate} </td>"; - if (${LedgerSMB::Sysconfig::spool}file eq $ref->{spoolfile}) { + if (${LedgerSMB::Sysconfig::spool} eq $ref->{spoolfile}) { $column_data{checked} = qq|<td></td>|; } else { $column_data{checked} = qq|<td><input name=checked_$i type=checkbox class=checkbox $form->{"checked_$i"} $form->{"checked_$i"}></td>|; @@ -462,7 +462,7 @@ sub list_spool { |; - ${LedgerSMB::Sysconfig::spool}file = $ref->{spoolfile}; + ${LedgerSMB::Sysconfig::spool} = $ref->{spoolfile}; $j++; $j %= 2; print " |