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:
f43ab62
)
SEPA: bei Liste noch zu erledigender Rechnungen Skonto berücksichtigen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 5 Jan 2016 16:08:18 +0000
(17:08 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 5 Jan 2016 16:08:18 +0000
(17:08 +0100)
SL/SEPA.pm
patch
|
blob
|
history
diff --git
a/SL/SEPA.pm
b/SL/SEPA.pm
index
9457917
..
2b5738d
100644
(file)
--- a/
SL/SEPA.pm
+++ b/
SL/SEPA.pm
@@
-49,7
+49,7
@@
sub retrieve_open_invoices {
FROM ${arap}
LEFT JOIN ${vc} vc ON (${arap}.${vc}_id = vc.id)
- LEFT JOIN (SELECT sei.${arap}_id, SUM(sei.amount) AS amount
+ LEFT JOIN (SELECT sei.${arap}_id, SUM(sei.amount)
+ SUM(COALESCE(sei.skonto_amount,0))
AS amount
FROM sepa_export_items sei
LEFT JOIN sepa_export se ON (sei.sepa_export_id = se.id)
WHERE NOT se.closed