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:
4c9ae7f
)
SEPA: offene Einzüge beim Neuerstellen von Einzügen richtig berücksichtigen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 25 Sep 2015 10:27:28 +0000
(12:27 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 25 Sep 2015 10:28:01 +0000
(12:28 +0200)
SL/SEPA.pm
patch
|
blob
|
history
diff --git
a/SL/SEPA.pm
b/SL/SEPA.pm
index
8e7306e
..
f2599a8
100644
(file)
--- a/
SL/SEPA.pm
+++ b/
SL/SEPA.pm
@@
-49,13
+49,13
@@
sub retrieve_open_invoices {
FROM ${arap}
LEFT JOIN ${vc} vc ON (${arap}.${vc}_id = vc.id)
FROM ${arap}
LEFT JOIN ${vc} vc ON (${arap}.${vc}_id = vc.id)
- LEFT JOIN (SELECT sei.
ap
_id, SUM(sei.amount) AS amount
+ LEFT JOIN (SELECT sei.
${arap}
_id, SUM(sei.amount) AS amount
FROM sepa_export_items sei
LEFT JOIN sepa_export se ON (sei.sepa_export_id = se.id)
WHERE NOT se.closed
AND (se.vc = '${vc}')
FROM sepa_export_items sei
LEFT JOIN sepa_export se ON (sei.sepa_export_id = se.id)
WHERE NOT se.closed
AND (se.vc = '${vc}')
- GROUP BY sei.
ap
_id)
- AS open_transfers ON (${arap}.id = open_transfers.
ap
_id)
+ GROUP BY sei.
${arap}
_id)
+ AS open_transfers ON (${arap}.id = open_transfers.
${arap}
_id)
LEFT JOIN payment_terms pt ON (${payment_term_type}.payment_id = pt.id)
LEFT JOIN payment_terms pt ON (${payment_term_type}.payment_id = pt.id)