Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 413651d0

Von Jan Büren vor mehr als 7 Jahren hinzugefügt

  • ID 413651d0f606611bd44a07a9ca08d22cac23ab54
  • Vorgänger 2f3b969e
  • Nachfolger 5a392100

debugs raus

git add --patch, danach nur git commit und nicht
git commit filename

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
101 101
      @where
102 102
    ],
103 103
  );
104
 $::lxdebug->log_time('asdf');
105 104
  # credit notes have a negative amount, treat differently
106 105
  my $all_open_ar_invoices = SL::DB::Manager::Invoice        ->get_all(where => [ or => [ amount => { gt => \'paid' },
107 106
                                                                                          and => [ type    => 'credit_note',
......
115 114
  my $all_open_sepa_export_items = SL::DB::Manager::SepaExportItem->get_all(where => [chart_id => $bank_account->chart_id ,
116 115
                                                                             'sepa_export.executed' => 0, 'sepa_export.closed' => 0 ], with_objects => ['sepa_export']);
117 116

  
118
  $::lxdebug->log_time('asdf 2');
119 117
  my @all_open_invoices;
120 118
  # filter out invoices with less than 1 cent outstanding
121 119
  push @all_open_invoices, map { $_->{is_ar}=1 ; $_ } grep { abs($_->amount - $_->paid) >= 0.01 } @{ $all_open_ar_invoices };
......
141 139
    }
142 140
  }
143 141

  
144
 $::lxdebug->log_time('asdf 4');
145 142
  # try to match each bank_transaction with each of the possible open invoices
146 143
  # by awarding points
147 144
  my @proposals;
......
202 199
        push(@{$bt->{rule_matches}}, $_->{rule_matches});
203 200
      };
204 201
    };
205
  $::lxdebug->log_time('asdf 5');
206 202
  }  # finished one bt
207 203
  # finished all bt
208 204

  

Auch abrufbar als: Unified diff