Revision 66e2fdcc
Von Waldemar Toews vor fast 11 Jahren hinzugefügt
SL/SEPA.pm | ||
---|---|---|
177 | 177 |
if ($export->{id}) { |
178 | 178 |
my ($columns, $joins); |
179 | 179 |
|
180 |
my $mandator_id = $params{vc} eq 'customer' ? ', mandator_id' : ''; |
|
181 |
|
|
180 | 182 |
if ($params{details}) { |
181 |
$columns = qq|, arap.invnumber, arap.invoice, arap.transdate AS reference_date, vc.name AS vc_name, vc.${vc}number AS vc_number, c.accno AS chart_accno, c.description AS chart_description|; |
|
183 |
$columns = qq|, arap.invnumber, arap.invoice, arap.transdate AS reference_date, vc.name AS vc_name, vc.${vc}number AS vc_number, c.accno AS chart_accno, c.description AS chart_description, ${mandator_id}|;
|
|
182 | 184 |
$joins = qq|LEFT JOIN ${arap} arap ON (sei.${arap}_id = arap.id) |
183 | 185 |
LEFT JOIN ${vc} vc ON (arap.${vc}_id = vc.id) |
184 | 186 |
LEFT JOIN chart c ON (sei.chart_id = c.id)|; |
Auch abrufbar als: Unified diff
Kunden Mandanten ID fuer SEPA Lastschrift implementiert.