| 238 | === Filtr drzewka === |
| 239 | |
| 240 | ==== MPK na fakturach ==== |
| 241 | |
| 242 | Filtr pozwala na znajdowanie faktur kosztowych ze względu na wybrane MPK |
| 243 | |
| 244 | {{{ |
| 245 | keyval in (select doc_id from vatnote_costs where povcid in ({value})) |
| 246 | |
| 247 | select povcid as keyval, prn_id, place_||' '||coalesce (dscrpt,'') name__, 'FOLDER' AS icon__ FROM places_of_vcosts where year__ = |
| 248 | EXTRACT(year FROM current_date) and is_del is false |
| 249 | order by name__ |
| 250 | }}} |
| 251 | |
| 252 | ==== RK na fakturach ==== |
| 253 | Filtr pozwala na znajdowanie faktur kosztowych ze względu na wybrane RK |
| 254 | |
| 255 | {{{ |
| 256 | keyval in (select doc_id from vatnote_costs where tovcid in ({value})) |
| 257 | |
| 258 | select tovcid as keyval, prn_id, type__||' '||coalesce (dscrpt,'') name__, 'FOLDER' AS icon__ FROM types_of_vcosts where year__ = |
| 259 | EXTRACT(year FROM current_date) and is_del is false |
| 260 | order by name__ |
| 261 | }}} |
| 262 | |
| 263 | |
| 264 | === Inne === |