]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Optionen für Gewinnermittlung, Warenbuchungsmethode und Versteuerungsart in Mandanten...
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 2 Nov 2012 12:11:39 +0000 (13:11 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 2 Nov 2012 12:45:23 +0000 (13:45 +0100)
SL/Controller/ClientConfig.pm
locale/de/all
locale/de_DE/all
locale/en/all
templates/webpages/client_config/form.html

index e6e687806e0c0e45515ea5b4f6d2f55ee2c0e269..2047077f7035887abb0a4d037044f52e2dfa4c7f 100644 (file)
@@ -15,8 +15,17 @@ sub action_edit {
   $self->{payment_options} = [ { title => $::locale->text("never"), value => 0 },
                                { title => $::locale->text("every time"), value => 1 },
                                { title => $::locale->text("on the same day"), value => 2 }, ];
+  $self->{accounting_options} = [ { title => $::locale->text("accrual"), value => "accrual" },
+                                  { title => $::locale->text("cash"), value => "cash" }, ];
+  $self->{inventory_options} = [ { title => $::locale->text("perpetual"), value => "perpetual" },
+                                 { title => $::locale->text("periodic"), value => "periodic" }, ];
+  $self->{profit_options} = [ { title => $::locale->text("balance"), value => "balance" },
+                              { title => $::locale->text("income"), value => "income" }, ];
 
   $self->{payments_changeable} = SL::DB::Default->get->payments_changeable;
+
+  map { $self->{$_} = SL::DB::Default->get->$_ } qw(accounting_method inventory_system profit_determination);
+
   $self->{show_bestbefore}     = SL::DB::Default->get->show_bestbefore;
 
   map { $self->{$_} = SL::DB::Default->get->$_ } qw(datev_check_on_sales_invoice datev_check_on_purchase_invoice datev_check_on_ar_transaction datev_check_on_ap_transaction datev_check_on_gl_transaction);
@@ -33,6 +42,9 @@ sub action_save {
   my ($self, %params) = @_;
 
   SL::DB::Default->get->update_attributes('payments_changeable' => $::form->{payments_changeable});
+
+  map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(accounting_method inventory_system profit_determination);
+
   SL::DB::Default->get->update_attributes('show_bestbefore'     => $::form->{show_bestbefore});
 
   map { SL::DB::Default->get->update_attributes($_ => $::form->{$_}); } qw(datev_check_on_sales_invoice datev_check_on_purchase_invoice datev_check_on_ar_transaction datev_check_on_ap_transaction datev_check_on_gl_transaction);
index 63a677df8f98a2c4a78774ea9331f88b303e8b6c..048bb8408a3ff3952cc2f73130802ca4feb60a54 100644 (file)
@@ -56,6 +56,7 @@ $self->{texts} = {
   'AR Transactions'             => 'Debitorenbuchungen',
   'ASSETS'                      => 'AKTIVA',
   'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => 'ACHTUNG! Wenn Sie diese Einstellung aktivieren, dann können Sie sie später nicht ohne Weiteres deaktivieren, ohne dafür zu sorgen, dass die Felder der Mindeshaltbarkeitsdaten in der Datenbank leer gemacht werden.',
+  'ATTENTION! You can not simply change it from periodic to perpetual once you started posting.' => 'ACHTUNG!" Es kann nicht ohne Weiteres im laufenden Betrieb von der Aufwandsmethode zur Bestandsmethode gewechselt werden.',
   'Abort'                       => 'Abbrechen',
   'Abrechnungsnummer'           => 'Abrechnungsnummer',
   'Abteilung'                   => 'Abteilung',
@@ -2026,6 +2027,9 @@ $self->{texts} = {
   'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' => 'Diese Liste ist auf 15 Zeilen begrenzt. Wenn Sie eine vollständige Liste benötigen, erstellen Sie bitte einen Bericht.',
   'This means that the user has created an AP transaction and chosen a taxkey for sales taxes, or that he has created an AR transaction and chosen a taxkey for input taxes.' => 'Das bedeutet, dass ein Benutzer eine Kreditorenbuchung angelegt und in ihr einen Umsatzsteuer-Steuerschlüssel verwendet oder eine Debitorenbuchung mit Vorsteuer-Steuerschlüssel angelegt hat.',
   'This module can help you identify and correct such entries by analyzing the general ledger and presenting you likely solutions but also allowing you to fix problems yourself.' => 'Dieses Modul kann Ihnen helfen, problematische Einträge im Hauptbuch zu identifizieren und teilweise zu beheben. Dabei werden je nach Problem mögliche Lösungen aufgezeigt, wobei Sie die entscheiden können, welche Probleme automatisch gelöst werden sollen.',
+  'This option controls the inventory system.' => 'Dieser Parameter legt die Warenbuchungsmethode fest.',
+  'This option controls the method used for profit determination.' => 'Dieser Parameter legt die Berechnungsmethode für die Gewinnermittlung fest.',
+  'This option controls the posting and calculation behavior for the accounting method.' => 'Dieser Parameter steuert die Buchungs- und Berechnungsmethoden für die Versteuerungsart.',
   'This transaction has to be split into several transactions manually.' => 'Diese Buchung muss manuell in mehrere Buchungen aufgeteilt werden.',
   'This update will change the nature the onhand of goods is tracked.' => 'Dieses update &auml;ndert die Art und Weise wie Lagermengen gez&auml;lt werden.',
   'This upgrade script tries to map all existing parts in the database to the newly created Buchungsgruppen.' => 'Dieses Upgradescript versucht, bei allen bestehenden Artikeln neu erstellte Buchungsgruppen zuzuordnen.',
index cd9ba9097da3a766a8d222aa5153edee38a297ed..9cb56d8d24ecd739028c29cf072ffdfca34b1c30 100644 (file)
@@ -56,6 +56,7 @@ $self->{texts} = {
   'AR Transactions'             => 'Debitorenbuchungen',
   'ASSETS'                      => 'AKTIVA',
   'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => 'ACHTUNG! Wenn Sie diese Einstellung aktivieren, dann können Sie sie später nicht ohne Weiteres deaktivieren, ohne dafür zu sorgen, dass die Felder der Mindeshaltbarkeitsdaten in der Datenbank leer gemacht werden.',
+  'ATTENTION! You can not simply change it from periodic to perpetual once you started posting.' => 'ACHTUNG!" Es kann nicht ohne Weiteres im laufenden Betrieb von der Aufwandsmethode zur Bestandsmethode gewechselt werden.',
   'Abort'                       => 'Abbrechen',
   'Abrechnungsnummer'           => 'Abrechnungsnummer',
   'Abteilung'                   => 'Abteilung',
@@ -1956,6 +1957,9 @@ $self->{texts} = {
   'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' => 'Diese Liste ist auf 15 Zeilen begrenzt. Wenn Sie eine vollständige Liste benötigen, erstellen Sie bitte einen Bericht.',
   'This means that the user has created an AP transaction and chosen a taxkey for sales taxes, or that he has created an AR transaction and chosen a taxkey for input taxes.' => 'Das bedeutet, dass ein Benutzer eine Kreditorenbuchung angelegt und in ihr einen Umsatzsteuer-Steuerschlüssel verwendet oder eine Debitorenbuchung mit Vorsteuer-Steuerschlüssel angelegt hat.',
   'This module can help you identify and correct such entries by analyzing the general ledger and presenting you likely solutions but also allowing you to fix problems yourself.' => 'Dieses Modul kann Ihnen helfen, problematische Einträge im Hauptbuch zu identifizieren und teilweise zu beheben. Dabei werden je nach Problem mögliche Lösungen aufgezeigt, wobei Sie die entscheiden können, welche Probleme automatisch gelöst werden sollen.',
+  'This option controls the inventory system.' => 'Dieser Parameter legt die Warenbuchungsmethode fest.',
+  'This option controls the method used for profit determination.' => 'Dieser Parameter legt die Berechnungsmethode für die Gewinnermittlung fest.',
+  'This option controls the posting and calculation behavior for the accounting method.' => 'Dieser Parameter steuert die Buchungs- und Berechnungsmethoden für die Versteuerungsart.',
   'This transaction has to be split into several transactions manually.' => 'Diese Buchung muss manuell in mehrere Buchungen aufgeteilt werden.',
   'This update will change the nature the onhand of goods is tracked.' => 'Dieses update &auml;ndert die Art und Weise wie Lagermengen gez&auml;lt werden.',
   'This upgrade script tries to map all existing parts in the database to the newly created Buchungsgruppen.' => 'Dieses Upgradescript versucht, bei allen bestehenden Artikeln neu erstellte Buchungsgruppen zuzuordnen.',
index 87ec3176972a8e03ac37e434444e051d582d01e9..915fa3785df86b14832d581623db6954c4f774d0 100644 (file)
@@ -56,6 +56,7 @@ $self->{texts} = {
   'AR Transactions'             => 'Sales Transactions',
   'ASSETS'                      => '',
   'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => '',
+  'ATTENTION! You can not simply change it from periodic to perpetual once you started posting.' => '',
   'Abort'                       => '',
   'Abrechnungsnummer'           => '',
   'Abteilung'                   => '',
@@ -1980,6 +1981,9 @@ $self->{texts} = {
   'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' => '',
   'This means that the user has created an AP transaction and chosen a taxkey for sales taxes, or that he has created an AR transaction and chosen a taxkey for input taxes.' => '',
   'This module can help you identify and correct such entries by analyzing the general ledger and presenting you likely solutions but also allowing you to fix problems yourself.' => '',
+  'This option controls the inventory system.' => '',
+  'This option controls the method used for profit determination.' => '',
+  'This option controls the posting and calculation behavior for the accounting method.' => '',
   'This transaction has to be split into several transactions manually.' => '',
   'This update will change the nature the onhand of goods is tracked.' => '',
   'This upgrade script tries to map all existing parts in the database to the newly created Buchungsgruppen.' => '',
index 416d66d0be3c07ada0df99a3578df9b040bb4ff7..d195e2a1ee9d26bb1e77adb891df352e23f21a1e 100644 (file)
    <td>[% L.select_tag('payments_changeable', SELF.payment_options, value_key => 'value', title_key => 'title', default => SELF.payments_changeable) %]</td>
    <td>[% 'Should payments be and when should they be changeable after posting?' | $T8 %]</td>
  </tr>
+ <tr>
+   <td align="right">[% 'Accounting method' | $T8 %]</td>
+   <td>[% L.select_tag('accounting_method', SELF.accounting_options, value_key => 'value', title_key => 'title', default => SELF.accounting_method) %]</td>
+   <td>[% 'This option controls the posting and calculation behavior for the accounting method.' | $T8 %]</td>
+ </tr>
+ <tr>
+   <td align="right">[% 'Inventory system' | $T8 %]</td>
+   <td>[% L.select_tag('inventory_system', SELF.inventory_options, value_key => 'value', title_key => 'title', default => SELF.inventory_system) %]</td>
+   <td>
+     [% 'This option controls the inventory system.' | $T8 %]<br>
+     [% 'ATTENTION! You can not simply change it from periodic to perpetual once you started posting.' | $T8 %]
+   </td>
+ </tr>
+ <tr>
+   <td align="right">[% 'Profit determination' | $T8 %]</td>
+   <td>[% L.select_tag('profit_determination', SELF.profit_options, value_key => 'value', title_key => 'title', default => SELF.profit_determination) %]</td>
+   <td>[% 'This option controls the method used for profit determination.' | $T8 %]</td>
+ </tr>
 
  <tr> </tr>
  <tr> </tr>