Revision e73f7350
Von Jan Büren vor mehr als 7 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
130 | 130 |
my $factor = ($_->ar_id == $open_invoice->id ? 1 : -1); |
131 | 131 |
#$main::lxdebug->message(LXDebug->DEBUG2(),"sepa_exitem=".$_->id." for invoice ".$open_invoice->id." factor=".$factor); |
132 | 132 |
$open_invoice->{realamount} = $::form->format_amount(\%::myconfig,$open_invoice->amount*$factor,2); |
133 |
push @{$open_invoice->{sepa_export_item}}, $_; |
|
134 | 133 |
$open_invoice->{skonto_type} = $_->payment_type; |
135 | 134 |
$sepa_exports{$_->sepa_export_id} ||= { count => 0, is_ar => 0, amount => 0, proposed => 0, invoices => [], item => $_ }; |
136 | 135 |
$sepa_exports{$_->sepa_export_id}->{count}++; |
SL/DB/BankTransaction.pm | ||
---|---|---|
227 | 227 |
|
228 | 228 |
# test for amount and id matching only, sepa transfer date and bank |
229 | 229 |
# transaction date needn't match |
230 |
my $arap = $invoice->is_sales ? 'ar' : 'ap'; |
|
231 |
|
|
232 | 230 |
if (abs($self->amount) == ($sei->amount) && $invoice->id == $sei->arap_id) { |
233 | 231 |
$agreement += $points{sepa_export_item}; |
234 | 232 |
$rule_matches .= 'sepa_export_item(' . $points{'sepa_export_item'} . ') '; |
Auch abrufbar als: Unified diff
Für #277 toten Code entfernen