Revision 000ba9b8
Von Ema-Andreea Ghiurca vor etwa 3 Jahren hinzugefügt
bin/mozilla/common.pl | ||
---|---|---|
239 | 239 |
|
240 | 240 |
my $callback = build_std_url(qw(action longdescription trans_id_type input_name)); |
241 | 241 |
my $restriction; |
242 |
if ( $form->{trans_id_type} eq 'glid' ) { |
|
243 |
$restriction = "AND ( snumbers LIKE 'invnumber%' OR what_done LIKE '%Buchungsnummer%' OR snumbers LIKE 'gltransaction%' OR snumbers LIKE 'emailjournal%' ) ";
|
|
244 |
} elsif ( $form->{trans_id_type} eq 'id' ) { |
|
245 |
$restriction = " AND ( snumbers NOT LIKE 'invnumber_%' AND snumbers NOT LIKE 'gltransaction%' AND (what_done NOT LIKE '%Buchungsnummer%' OR what_done IS null))"; |
|
242 |
if ( $form->{trans_id_type} eq 'glid' ) { # for invoices
|
|
243 |
$restriction = "AND ( snumbers LIKE 'invnumber%' OR what_done LIKE '%Buchungsnummer%' OR snumbers LIKE 'gltransaction%' OR (snumbers LIKE 'emailjournal%' AND what_done ~ 'invoice|credit_note') ) ";
|
|
244 |
} elsif ( $form->{trans_id_type} eq 'id' ) { # for non invoices
|
|
245 |
$restriction = " AND ( snumbers NOT LIKE 'invnumber_%' AND snumbers NOT LIKE 'gltransaction%' AND (what_done NOT LIKE '%Buchungsnummer%' AND what_done NOT LIKE '%invoice%' OR what_done IS null))";
|
|
246 | 246 |
} else { |
247 | 247 |
$restriction = ''; |
248 | 248 |
}; |
Auch abrufbar als: Unified diff
Historie zeigt Einträge von anderen Belegen
ticket #11167
(cherry picked from commit 59eb76522127c336bdf68cacb84a83d49ab19f75)
(cherry-pick von odyn)