Die Generierung einer periodische Rechnung mit der Periode einmalig
sollte auch den Quell-Auftrag schliessen.
if ($self->periodicity eq 'o') {
_log_msg("setting inactive\n");
$self->active(0);
if ($self->periodicity eq 'o') {
_log_msg("setting inactive\n");
$self->active(0);
+ $self->order->update_attributes(closed => 1);
$self->save;
return $self->order->ordnumber;
}
$self->save;
return $self->order->ordnumber;
}
=item C<sub disable_one_time_config>
Sets the state of the periodic_invoices_configs to inactive
=item C<sub disable_one_time_config>
Sets the state of the periodic_invoices_configs to inactive
-(active => false) if the periodicity is <Co> (one time).
+(active => false) and closes the source order (closed => true)
+if the periodicity is <Co> (one time).
+
Returns undef if the periodicity is not 'one time' otherwise the
order number of the deactivated periodic order.
Returns undef if the periodicity is not 'one time' otherwise the
order number of the deactivated periodic order.