From: Moritz Bunkus Date: Fri, 13 May 2011 13:35:34 +0000 (+0200) Subject: Merge branch 'master' of lx-office.linet-services.de:lx-office-erp X-Git-Tag: release-2.6.3~25^2~35^2 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/27ae86579fb8833067e9d6c02cf5429d98b28449?hp=c7771eecd629e21fc58d0a00ede0eb4b6615c715 Merge branch 'master' of lx-office.linet-services.de:lx-office-erp --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 1b7a10960..99a2cc751 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -401,6 +401,7 @@ sub update_delivery_order { && ($form->{"description_$i"} eq "")) { $form->{rowcount}--; $form->{"discount_$i"} = ""; + $form->{"not_discountable_$i"} = ""; display_form(); } else { @@ -745,9 +746,13 @@ sub invoice { for my $i (1 .. $form->{rowcount}) { # für bug 1284 - if ($form->{discount}){ # Falls wir einen Lieferanten-/Kundenrabatt haben - # und keinen anderen discount wert an $i ... - $form->{"discount_$i"} ||= $form->{discount}*100; # ... nehmen wir diesen Rabatt + unless ($form->{"ordnumber"}) { + if ($form->{discount}) { # Falls wir einen Lieferanten-/Kundenrabatt haben + # und rabattfähig sind, dann + unless ($form->{"not_discountable_$i"}) { + $form->{"discount_$i"} = $form->{discount}*100; # ... nehmen wir diesen Rabatt + } + } } map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if $form->{"${_}_${i}"} } qw(ship qty sellprice listprice lastcost basefactor); } diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index b26bce415..866e5ec32 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -370,7 +370,7 @@ sub display_row { if ($is_delivery_order) { map { $form->{"${_}_${i}"} = $form->format_amount(\%myconfig, $form->{"${_}_${i}"}) } qw(sellprice discount lastcost); - push @hidden_vars, qw(sellprice discount price_factor_id lastcost); + push @hidden_vars, qw(sellprice discount not_discountable price_factor_id lastcost); push @hidden_vars, "stock_${stock_in_out}_sum_qty", "stock_${stock_in_out}"; } diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 0e944e9b7..5b1bc51d0 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -393,9 +393,8 @@ sub form_header { : ($creditwarning) ? "alert('$credittext')" : ""; - $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; - $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; - $TMPL_VAR{onload} = $onload; + $TMPL_VAR{dateformat} = $myconfig{dateformat}; + $TMPL_VAR{numberformat} = $myconfig{numberformat}; if ($form->{type} eq 'sales_order') { if (!$form->{periodic_invoices_config}) { diff --git a/doc/changelog b/doc/changelog index eefcecbda..b76755204 100644 --- a/doc/changelog +++ b/doc/changelog @@ -44,6 +44,7 @@ - Bugfix 1633: Stammdatenaufruf aus SEPA-Modul - Bugfix 1575: Kundenrabatt geht verloren - Bugfix 1647: Lieferanten-Einkaufspreise verlieren Nachkommastellen + - Bugfix 1630: Rabatt wird auf der Rechnung auch auf nicht rabattierfähige Artikel gewährt 2011-02-02 - Release 2.6.2 diff --git a/doc/konfigurationsdatei.txt b/doc/konfigurationsdatei.txt index 18a9e3c27..bab8b420d 100644 --- a/doc/konfigurationsdatei.txt +++ b/doc/konfigurationsdatei.txt @@ -1,18 +1,19 @@ == Lx-Office Konfigurationsdatei ab Version 2.6.3 == -Seit Lx-Office 2.6.3. findet sich die Hauptconfigurationsdatei von Lx-Office in -der Datei config/lx_office.conf. +Seit Lx-Office 2.6.3. gibt es nur noch eine Konfigurationsdatei die benötigt wird - die: config/lx_office.conf. -Diese muß bei der Erstinstallation von Lx-Office (oder Migration von älteren -Versionen) angelegt werden, als Vorlage dient die Datei -config/lx_office.conf.default. Die Datei lx_office.conf ist eine -installationsspezifische Datei, enthält z.B. die wichtigsten Passwörter der -lokalen Installation, und findet sich auch nicht im Git Repository. Diese -Konfigurationsdatei ist unabhängig von den verschiedenen Mandanten, die auf der -Installation laufen. +Diese muß bei der Erstinstallation von Lx-Office (oder Migration von älteren Versionen) angelegt werden. +Als Vorlage dient die Datei config/lx_office.conf.default. -Die Konfigurationsdatei besteht aus mehreren Teilen, die entsprechend -kommentiert sind: + $ cp config/lx_office.conf.default config/lx_office.conf + +Diese Datei (lx_office.conf) ist dann eine installationsspezifische Datei, +d.h. sie enthält bspw. lokale Passwörter und wird auch nicht im Versionsmanagement (git) verwaltet. + +Die Konfiguration ist ferner serverabhängig, d.h. für alle Mandaten, bzw. Datenbanken gleich. + + +Die Konfigurationsdatei besteht aus mehreren Teilen, die entsprechend kommentiert sind: * authentication * authentication/database @@ -28,8 +29,7 @@ kommentiert sind: * console * debug -Die üblicherweise wichtigsten Parameter, die am Anfang einzustellen oder zu -kontrollieren sind, sind: +Die üblicherweise wichtigsten Parameter, die am Anfang einzustellen oder zu kontrollieren sind, sind: [authentication] admin_password = geheim diff --git a/locale/de/all b/locale/de/all index 3eeba996a..b3beb5e44 100644 --- a/locale/de/all +++ b/locale/de/all @@ -927,6 +927,7 @@ $self->{texts} = { 'Konten' => 'Konten', 'Kontonummernerweiterung (KNE)' => 'Kontonummernerweiterung (KNE)', 'L' => 'L', + 'LANGUAGES' => '', 'LIABILITIES' => 'PASSIVA', 'LP' => 'LP', 'LaTeX Templates' => 'LaTeX-Vorlagen', @@ -1921,6 +1922,7 @@ $self->{texts} = { 'Weight unit' => 'Gewichtseinheit', 'What term you are looking for?' => 'Nach welchem Begriff wollen Sie suchen?', 'What type of item is this?' => 'Was ist dieser Artikel?', + 'Which is located at doc/konfigurationsdatei.txt. Click here: ' => 'Zu finden in doc/konfigurationsdatei.txt. Oder hier klicken: ', 'With Extension Of Time' => 'mit Dauerfristverlängerung', 'Workflow Delivery Order' => 'Workflow Lieferschein', 'Workflow purchase_order' => 'Workflow Lieferantenauftrag', diff --git a/templates/webpages/login/old_configuration_files.html b/templates/webpages/login/old_configuration_files.html index 3b6c94ecb..6e147cf5b 100644 --- a/templates/webpages/login/old_configuration_files.html +++ b/templates/webpages/login/old_configuration_files.html @@ -20,6 +20,10 @@

[%- LxERP.t8('You can find information on the migration in the upgrade documentation.') %]

+

+ + [%- LxERP.t8('Which is located at doc/konfigurationsdatei.txt. Click here: ') %] doc/konfigurationsdatei.txt +

[%- LxERP.t8('Back to login') %] diff --git a/templates/webpages/oe/form_header.html b/templates/webpages/oe/form_header.html index c07cd5971..a04676141 100644 --- a/templates/webpages/oe/form_header.html +++ b/templates/webpages/oe/form_header.html @@ -2,7 +2,7 @@ [%- USE HTML %] [%- USE LxERP %] [%- USE L %] - +

@@ -243,5 +243,10 @@