Revision 97eaf9e0
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/LiquidityProjection.pm | ||
---|---|---|
200 | 200 |
LEFT JOIN buchungsgruppen bg ON (p.buchungsgruppen_id = bg.id) |
201 | 201 |
LEFT JOIN partsgroup pg ON (p.partsgroup_id = pg.id) |
202 | 202 |
LEFT JOIN employee e ON (COALESCE(oe.salesman_id, oe.employee_id) = e.id) |
203 |
WHERE (oe.customer_id IS NOT NULL) |
|
204 |
AND NOT COALESCE(oe.quotation, FALSE) |
|
203 |
WHERE oe.record_type = 'sales_order' |
|
205 | 204 |
AND NOT COALESCE(oe.closed, FALSE) |
206 | 205 |
AND (oe.id NOT IN (SELECT oe_id FROM periodic_invoices_configs WHERE periodicity <> 'o')) |
207 | 206 |
SQL |
... | ... | |
357 | 356 |
} |
358 | 357 |
|
359 | 358 |
my @where = ( |
360 |
'!customer_id' => undef, |
|
361 |
or => [ quotation => undef, quotation => 0, ], |
|
359 |
record_type => 'sales_order', |
|
362 | 360 |
or => [ closed => undef, closed => 0, ], |
363 | 361 |
); |
364 | 362 |
push @where, (reqdate => { ge => $params{after}->clone }) if $params{after}; |
Auch abrufbar als: Unified diff
Angebotsflag aus Datenbankzugriffen entfernt