mkdir_with_parents($path);
} else {
- my $base_path = substr($ENV{'SCRIPT_NAME'}, 1);
+ my $base_path = $ENV{'SCRIPT_NAME'};
$base_path =~ s|[^/]+$||;
- $base_path =~ s|/$||;
# wo kommt der wert für dir her? es wird doch gar nichts übergeben? fix für strict my $dir jb 21.2.
if (opendir my $dir, $path) {
foreach my $file (sort { lc $a cmp lc $b } readdir $dir) {
push @{ $form->{WEBDAV} }, {
'name' => $fname,
- 'link' => "$base_path/$file",
+ 'link' => $base_path . $file,
'type' => $is_directory ? $main::locale->text('Directory') : $main::locale->text('File'),
};
}
my $firstrun = 1;
my $subcent = abs($count) < 0.02;
- while (abs($count) > 0.01 || $firstrun || ($subcent && abs($count) > 0.001)) {
+ while (abs($count) > 0.01 || $firstrun || ($subcent && abs($count) > 0.005)) {
my $ref2 = $sth->fetchrow_hashref("NAME_lc");
last unless ($ref2);
$attributes{id} ||= $self->name_to_id($name);
$attributes{value} = 1 unless defined $attributes{value};
my $label = delete $attributes{label};
+ my $checkall = delete $attributes{checkall};
if ($attributes{checked}) {
$attributes{checked} = 'checked';
my $code = $self->html_tag('input', undef, %attributes, name => $name, type => 'checkbox');
$code .= $self->html_tag('label', $label, for => $attributes{id}) if $label;
+ $code .= $self->javascript(qq|\$('#$attributes{id}').checkall('$checkall');|) if $checkall;
return $code;
}
created with said C<label>. No attribute named C<label> is created in
that case.
+If C<%attributes> contains a key C<checkall> then the value is taken as a
+JQuery selector and clicking this checkbox will also toggle all checkboxes
+matching the selector.
+
=item C<date_tag $name, $value, cal_align =E<gt> $align_code, %attributes>
Creates a date input field, with an attached javascript that will open a
[system]
# EUR: Einnahmen-Überschussrechnung (net income method). Set this to 1
# if your company uses the net income method and to 0 for balancing.
+# Additional note in german: Sollversteuerung = 0; Istversteuerung = 1
eur = 1
# Set language for login and admin forms. Currently "de" (German),
Liste gefixter Bugs aus dem Bugtracker:
- - Bugfix 1613: Status teilweise
+ - Bugfix 1613: Abteilung wird bei Verkaufsrechnungen nicht gespeichert
- Bugfix 1642: Lieferantenrabatt wird korrekt gespeichert, aber nicht mehr angezeigt
- Bugfix 1626: Beim Festlegen der Standardkonten kann beim Warenbestand eine Überschrift ausgewählt werden.
- Bugfix 1584: Summen und Saldenliste: Export to PDF/CSV in EÜR Modus falsch