Revision 11195f5c
Von Jan Büren vor fast 8 Jahren hinzugefügt
SL/LiquidityProjection.pm | ||
---|---|---|
113 | 113 |
FROM periodic_invoices pi |
114 | 114 |
LEFT JOIN periodic_invoices_configs pcfg ON (pi.config_id = pcfg.id) |
115 | 115 |
WHERE pcfg.active |
116 |
AND NOT pcfg.periodicity = 'o' |
|
116 | 117 |
AND (pi.period_start_date >= to_date($q_min_date, 'YYYY-MM-DD')) |
117 | 118 |
SQL |
118 | 119 |
|
... | ... | |
138 | 139 |
LEFT JOIN buchungsgruppen bg ON (p.buchungsgruppen_id = bg.id) |
139 | 140 |
LEFT JOIN employee e ON (COALESCE(oe.salesman_id, oe.employee_id) = e.id) |
140 | 141 |
WHERE pcfg.active |
142 |
AND NOT pcfg.periodicity = 'o' |
|
141 | 143 |
SQL |
142 | 144 |
|
143 | 145 |
# 3. Iterieren über Saldierungsintervalle, vormerken |
... | ... | |
180 | 182 |
WHERE (oe.customer_id IS NOT NULL) |
181 | 183 |
AND NOT COALESCE(oe.quotation, FALSE) |
182 | 184 |
AND NOT COALESCE(oe.closed, FALSE) |
183 |
AND (oe.id NOT IN (SELECT oe_id FROM periodic_invoices_configs)) |
|
185 |
AND (oe.id NOT IN (SELECT oe_id FROM periodic_invoices_configs WHERE periodicity <> 'o'))
|
|
184 | 186 |
SQL |
185 | 187 |
|
186 | 188 |
# 5. Initialisierung der Datenstrukturen zum Speichern der |
Auch abrufbar als: Unified diff
Erweiterung Liquiditätsübersicht
wiederkehrende Rechnungen mit Periode einmalig wie einen normalen
offenen Auftrag in der Liquiditätsübersicht behandeln