Revision 654f9b7f
Von Tamino Steinert vor etwa 2 Monaten hinzugefügt
SL/DB/PeriodicInvoicesConfig.pm | ||
---|---|---|
118 | 118 |
$periods-- while $periods > 0 |
119 | 119 |
&& $self->add_months($period_start_date, -1 * ($periods - 1) * $i_period) < $item_config->start_date; |
120 | 120 |
} |
121 |
if ($item_config->end_date) { |
|
121 |
if ($item_config->end_date && ($item_config->terminated || !$item_config->extend_automatically_by)) {
|
|
122 | 122 |
my $periods_from_end = 0; |
123 | 123 |
$periods_from_end++ while $periods_from_end < $periods |
124 | 124 |
&& $self->add_months($period_start_date, -1 * ($periods_from_end)) > $item_config->end_date; |
... | ... | |
126 | 126 |
} |
127 | 127 |
return if $periods == 0; |
128 | 128 |
$new_item->qty($new_item->qty * $periods); |
129 |
} elsif ($i_period == $b_period) { |
|
130 |
return if $item_config->start_date && $item_config->start_date > $period_start_date; |
|
131 |
if ($item_config->terminated || !$item_config->extend_automatically_by) { |
|
132 |
return if $item_config->end_date && $item_config->end_date < $period_start_date; |
|
133 |
} |
|
129 | 134 |
} |
130 | 135 |
} |
131 | 136 |
|
Auch abrufbar als: Unified diff
S:D:PeriodicIvoicesConfig: Positionskonfiguration richtig behandeln