projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a344dd
)
Eine Aenderung zuviel in den Abfragen: Lieferdatum wurde nicht mehr berucksichtigt
author
Philip Reetz
<p.reetz@linet-services.de>
Mon, 26 Feb 2007 15:03:24 +0000
(15:03 +0000)
committer
Philip Reetz
<p.reetz@linet-services.de>
Mon, 26 Feb 2007 15:03:24 +0000
(15:03 +0000)
SL/USTVA.pm
patch
|
blob
|
history
diff --git
a/SL/USTVA.pm
b/SL/USTVA.pm
index
d7e2e42
..
f69cd2d
100644
(file)
--- a/
SL/USTVA.pm
+++ b/
SL/USTVA.pm
@@
-739,7
+739,7
@@
sub get_accounts_ustva {
SELECT id FROM taxkeys
WHERE chart_id = ac.chart_id
-- AND taxkey_id = ac.taxkey
- AND startdate <= COALESCE(ar.transdate)
+ AND startdate <= COALESCE(ar.
deliverydate,ar.
transdate)
ORDER BY startdate DESC LIMIT 1
)
)
@@
-777,7
+777,7
@@
sub get_accounts_ustva {
tk.id = (
SELECT id FROM taxkeys
WHERE chart_id = ac.chart_id
- AND startdate <= COALESCE(ar.transdate)
+ AND startdate <= COALESCE(ar.
deliverydate,ar.
transdate)
ORDER BY startdate DESC LIMIT 1
)
)