Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5d3e8761

Von Tamino Steinert vor 24 Tagen hinzugefügt

  • ID 5d3e8761c8fb0d24f60d2dc7eb2f25fed8ab69f4
  • Vorgänger 47326326
  • Nachfolger 263efcfd

S:D:PeriodicInvoicesConfig: für Subtrahieren Helferfunktion nutzen

Unterschiede anzeigen:

SL/DB/PeriodicInvoicesConfig.pm
44 44
    $new_order->tax_point(
45 45
      $self->add_months(
46 46
        $period_start_date, $self->get_billing_period_length || $self->get_order_value_period_length || 1
47
      )->add(days => -1)
47
      )->subtract(days => 1)
48 48
    );
49 49
    my @items;
50 50
    for my $item ($orig_order->items) {
......
255 255
  $new_date->add(months => $months);
256 256
  # stay in month: 31.01 + 1 month should be 28.02 or 29.02 (not 03.03. or 02.03)
257 257
  while (($start_months_of_date + $months) % 12 != $new_date->month % 12) {
258
    $new_date->add(days => -1);
258
    $new_date->subtract(days => 1);
259 259
  }
260 260

  
261 261
  # if date was at end of month -> move new date also to end of month

Auch abrufbar als: Unified diff