Revision 4536d0a7
Von Udo Spallek vor fast 18 Jahren hinzugefügt
SL/USTVA.pm | ||
---|---|---|
SELECT id FROM taxkeys
|
||
WHERE 1=1
|
||
AND chart_id=ac.chart_id
|
||
AND taxkey_id = ac.taxkey
|
||
--AND taxkey_id = ac.taxkey
|
||
AND startdate <= COALESCE(AP.transdate)
|
||
ORDER BY startdate DESC LIMIT 1
|
||
)
|
Auch abrufbar als: Unified diff
Die USTVA darf nicht nach dem Taxkey abfragen, weil dieser nichts damit zu tun hat.
Fuer die USTVA sind nur die pos_ustva von Relevanz.