Skip to content

Commit

Permalink
Erzwungener Layout-Stil: Abfangen, wenn Spalte in defaults noch nicht…
Browse files Browse the repository at this point in the history
… vorhanden

Sonst gibt es eine Fehlermeldung bei Einloggen, wenn das DB-Upgrade-Skript
noch nicht durchgelaufen ist.
  • Loading branch information
bblessmann committed Oct 16, 2023
1 parent e276ba2 commit e38f0b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SL/InstanceConfiguration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ sub get_address {
return join "\n", grep { $_ } ($self->get_address_street1, $self->get_address_street2, $zipcode_city, $self->get_address_country);
}

sub get_layout_style {
return $_[0]->data->{layout_style} if exists $_[0]->data->{layout_style};
return '';
}

sub AUTOLOAD {
our $AUTOLOAD;

Expand Down Expand Up @@ -121,6 +126,11 @@ Returns an array of configured currencies.
Returns the default currency or undef if no currency has been
configured.
=item C<get_layout_style>
Returns the forced default layout style or '' if the database column
does not exist yet.
=item C<get_accounting_method>
Returns the default accounting method, accrual or cash
Expand Down

0 comments on commit e38f0b8

Please sign in to comment.