Revision 017cfd35
Von Waldemar Toews vor fast 11 Jahren hinzugefügt
SL/CP.pm | ||
---|---|---|
147 | 147 |
|
148 | 148 |
my $buysell = $form->{vc} eq 'customer' ? "buy" : "sell"; |
149 | 149 |
my $arap = $form->{arap} eq "ar" ? "ar" : "ap"; |
150 |
my $invnumber = $form->{invnumber}; |
|
151 |
$invnumber =~ s/^\s+//m; |
|
152 |
$invnumber =~ s/\s+$//m; |
|
150 | 153 |
|
151 |
my $whereinvoice = $form->{invnumber} ? qq| AND a.invnumber = '| . $form->{invnumber} . qq|' | : undef;
|
|
154 |
my $whereinvoice = $invnumber ? qq| AND a.invnumber LIKE '| . $invnumber . qq|' | : undef;
|
|
152 | 155 |
|
153 | 156 |
my $query = |
154 | 157 |
qq|SELECT a.id, a.invnumber, a.transdate, a.amount, a.paid, cu.name AS curr | . |
Auch abrufbar als: Unified diff
SQL Fehler behoben.