Revision 1c77d03f
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/CT.pm | ||
---|---|---|
361 | 361 |
qq|LEFT JOIN employee e ON (ct.salesman_id = e.id) | . |
362 | 362 |
qq|LEFT JOIN payment_terms pt ON (ct.payment_id = pt.id) | . |
363 | 363 |
$pg_join . |
364 |
qq|WHERE $where AND (o.quotation = '0')|;
|
|
364 |
qq|WHERE $where AND ((o.record_type = 'sales_order') OR (o.record_type = 'purcharse_order'))|;
|
|
365 | 365 |
} |
366 | 366 |
|
367 | 367 |
if ( $form->{l_quonumber} ) { |
... | ... | |
380 | 380 |
qq|LEFT JOIN employee e ON (ct.salesman_id = e.id) | . |
381 | 381 |
qq|LEFT JOIN payment_terms pt ON (ct.payment_id = pt.id) | . |
382 | 382 |
$pg_join . |
383 |
qq|WHERE $where AND (o.quotation = '1')|;
|
|
383 |
qq|WHERE $where AND ((o.record_type = 'sales_quotation') OR (o.record_type = 'request_quotation'))|;
|
|
384 | 384 |
} |
385 | 385 |
} |
386 | 386 |
|
Auch abrufbar als: Unified diff
Angebotsflag/Intakeflag aus Datenbankzugriffen entfernt