Revision 9be7a364
Von Tamino Steinert vor 4 Monaten hinzugefügt
SL/DB/Order.pm | ||
---|---|---|
129 | 129 |
sub _before_save_validate_periodic_invoice_config { |
130 | 130 |
my ($self) = @_; |
131 | 131 |
|
132 |
# remove empty item configs |
|
133 |
foreach my $item (@{$self->items_sorted()}) { |
|
134 |
if ($item->periodic_invoice_items_config |
|
135 |
&& $item->periodic_invoice_items_config->periodicity eq '') { |
|
136 |
$item->periodic_invoice_items_config(undef); |
|
137 |
} |
|
138 |
} |
|
139 |
|
|
132 | 140 |
if ($self->periodic_invoices_config) { |
133 | 141 |
if ($self->periodic_invoices_config->periodicity eq 'o') { |
134 | 142 |
my @error_pos; |
Auch abrufbar als: Unified diff
S:D:Order: Entferne leere Konfigurationen für Pos. von Wied. Rechnungen