Revision 22efeff9
Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt
SL/RP.pm | ||
---|---|---|
644 | 644 |
|
645 | 645 |
|
646 | 646 |
if ($form->{method} eq "cash") { |
647 |
$acc_cash_where = qq| AND (ac.trans_id IN (SELECT id FROM ar WHERE datepaid>='$form->{fromdate}' AND datepaid<='$form->{todate}' UNION SELECT id FROM ap WHERE datepaid>='$form->{fromdate}' AND datepaid<='$form->{todate}' UNION SELECT id FROM gl WHERE transdate>='$form->{fromdate}' AND transdate<='$form->{todate}')) |; |
|
647 |
$acc_cash_where = |
|
648 |
qq| AND (ac.trans_id IN ( |
|
649 |
SELECT id |
|
650 |
FROM ar |
|
651 |
WHERE datepaid >= '$form->{fromdate}' |
|
652 |
AND datepaid <= '$form->{todate}' |
|
653 |
|
|
654 |
UNION |
|
655 |
|
|
656 |
SELECT id |
|
657 |
FROM ap |
|
658 |
WHERE datepaid >= '$form->{fromdate}' |
|
659 |
AND datepaid <= '$form->{todate}' |
|
660 |
|
|
661 |
UNION |
|
662 |
|
|
663 |
SELECT id |
|
664 |
FROM gl |
|
665 |
WHERE transdate >= '$form->{fromdate}' |
|
666 |
AND transdate <= '$form->{todate}' |
|
667 |
)) |; |
|
648 | 668 |
# $ar_ap_cash_where = qq| AND (a.datepaid>='$form->{fromdate}' AND a.datepaid<='$form->{todate}') |; |
649 | 669 |
} |
650 | 670 |
|
Auch abrufbar als: Unified diff
Query zur besseren Lesbarkeit formartiert.