From e2b0403982edf5a329b4dfc9d2b169eac91c3dd8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 10 Nov 2015 14:15:16 +0100 Subject: [PATCH] GoBD: GDPDU nach GoBD umbenannt --- SL/Controller/{Gdpdu.pm => GoBD.pm} | 14 +++++++------- SL/{GDPDU.pm => GoBD.pm} | 10 +++++----- js/{kivi.Gdpdu.js => kivi.GoBD.js} | 4 ++-- locale/de/all | 6 +++--- menus/user/00-erp.yaml | 6 +++--- templates/webpages/{gdpdu => gobd}/filter.html | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) rename SL/Controller/{Gdpdu.pm => GoBD.pm} (83%) rename SL/{GDPDU.pm => GoBD.pm} (99%) rename js/{kivi.Gdpdu.js => kivi.GoBD.js} (91%) rename templates/webpages/{gdpdu => gobd}/filter.html (95%) diff --git a/SL/Controller/Gdpdu.pm b/SL/Controller/GoBD.pm similarity index 83% rename from SL/Controller/Gdpdu.pm rename to SL/Controller/GoBD.pm index 596351b69..463c6d743 100644 --- a/SL/Controller/Gdpdu.pm +++ b/SL/Controller/GoBD.pm @@ -1,11 +1,11 @@ -package SL::Controller::Gdpdu; +package SL::Controller::GoBD; use strict; use parent qw(SL::Controller::Base); use DateTime; -use SL::GDPDU; +use SL::GoBD; use SL::Locale::String qw(t8); use SL::Helper::Flash; @@ -23,8 +23,8 @@ sub action_filter { $self->from(DateTime->today->add(years => -1)->add(days => 1)) if !$self->from; $self->to(DateTime->today) if !$self->to; - $::request->layout->add_javascripts('kivi.Gdpdu.js'); - $self->render('gdpdu/filter', current_year => DateTime->today->year, title => t8('GDPDU Export')); + $::request->layout->add_javascripts('kivi.GoBD.js'); + $self->render('gobd/filter', current_year => DateTime->today->year, title => t8('GoBD Export')); } sub action_export { @@ -35,16 +35,16 @@ sub action_export { return; } - my $gdpdu = SL::GDPDU->new( + my $gobd = SL::GoBD->new( company => $::instance_conf->get_company, location => $::instance_conf->get_address, from => $self->from, to => $self->to, ); - my $filename = $gdpdu->generate_export; + my $filename = $gobd->generate_export; - $self->send_file($filename, name => t8('gdpdu-#1-#2.zip', $self->from->ymd, $self->to->ymd), unlink => 1); + $self->send_file($filename, name => t8('gobd-#1-#2.zip', $self->from->ymd, $self->to->ymd), unlink => 1); } #--- other stuff diff --git a/SL/GDPDU.pm b/SL/GoBD.pm similarity index 99% rename from SL/GDPDU.pm rename to SL/GoBD.pm index 0d0f77bf1..e2a3b9621 100644 --- a/SL/GDPDU.pm +++ b/SL/GoBD.pm @@ -1,4 +1,4 @@ -package SL::GDPDU; +package SL::GoBD; # TODO: # optional: background jobable @@ -557,7 +557,7 @@ sub tag { } sub make_comment { - my $gdpdu_version = API_VERSION(); + my $gobd_version = API_VERSION(); my $kivi_version = $::form->read_version; my $person = $::myconfig{name}; my $contact = join ', ', @@ -565,8 +565,8 @@ sub make_comment { (t8("Tel") . ": $::myconfig{tel}" ) x!! $::myconfig{tel}, (t8("Fax") . ": $::myconfig{fax}" ) x!! $::myconfig{fax}; - t8('DataSet for GDPdU version #1. Created with kivitendo #2 by #3 (#4)', - $gdpdu_version, $kivi_version, $person, $contact + t8('DataSet for GoBD version #1. Created with kivitendo #2 by #3 (#4)', + $gobd_version, $kivi_version, $person, $contact ); } @@ -620,7 +620,7 @@ __END__ =head1 NAME -SL::GDPDU - IDEA export generator +SL::GoBD - IDEA export generator =head1 FUNCTIONS diff --git a/js/kivi.Gdpdu.js b/js/kivi.GoBD.js similarity index 91% rename from js/kivi.Gdpdu.js rename to js/kivi.GoBD.js index dfaba52c8..9e8c3ecfe 100644 --- a/js/kivi.Gdpdu.js +++ b/js/kivi.GoBD.js @@ -1,4 +1,4 @@ -namespace('kivi.Gdpdu', function(ns) { +namespace('kivi.GoBD', function(ns) { ns.grey_invalid_options = function(el){ console.log(el); if ($(el).prop('checked')) { @@ -20,4 +20,4 @@ namespace('kivi.Gdpdu', function(ns) { } }); -$(kivi.Gdpdu.setup); +$(kivi.GoBD.setup); diff --git a/locale/de/all b/locale/de/all index deca94057..96a0cc80d 100755 --- a/locale/de/all +++ b/locale/de/all @@ -802,7 +802,7 @@ $self->{texts} = { 'DUNS-Nr' => 'DUNS-Nr.', 'Data' => 'Daten', 'DataSet #1' => 'Datensatz #1', - 'DataSet for GDPdU version #1. Created with kivitendo #2 by #3 (#4)' => 'Datenüberlassung nach GDPdU vom #1. Erstellt mit kivitendo #2. Ansprechpartner ist #3 (#4)', + 'DataSet for GoBD version #1. Created with kivitendo #2 by #3 (#4)' => 'Datenüberlassung nach GoBD vom #1. Erstellt mit kivitendo #2. Ansprechpartner ist #3 (#4)', 'Database Administration' => 'Datenbankadministration', 'Database Connection Test' => 'Test der Datenbankverbindung', 'Database Host' => 'Datenbankcomputer', @@ -1349,7 +1349,7 @@ $self->{texts} = { 'Function block actions' => 'Funktionsblockaktionen', 'Function block number format' => 'Format der Funktionsblocknummerierung', 'Function/position' => 'Funktion/Position', - 'GDPDU Export' => 'GDPdU Export', + 'GoBD Export' => 'GoBD Export', 'GL Transaction' => 'Dialogbuchung', 'GL Transaction (abbreviation)' => 'DB', 'GL Transactions' => 'Dialogbuchungen', @@ -3571,7 +3571,7 @@ $self->{texts} = { 'found' => 'Gefunden', 'found_br' => 'Gef.', 'from (time)' => 'von', - 'gdpdu-#1-#2.zip' => 'gdpdu-#1-#2.zip', + 'gobd-#1-#2.zip' => 'gobd-#1-#2.zip', 'general_ledger_list' => 'buchungsjournal', 'generate cb/ob transactions for selected charts' => 'Buchungen erstellen', 'h' => 'h', diff --git a/menus/user/00-erp.yaml b/menus/user/00-erp.yaml index 0ff4e243e..8d46c43f5 100644 --- a/menus/user/00-erp.yaml +++ b/menus/user/00-erp.yaml @@ -855,12 +855,12 @@ params: action: LiquidityProjection/show - parent: reports - id: reports_gdpdu_export - name: GDPDU Export + id: reports_gobd_export + name: GoBD Export order: 1000 access: report params: - action: Gdpdu/filter + action: GoBD/filter - id: batch_printing name: Batch Printing icon: printing diff --git a/templates/webpages/gdpdu/filter.html b/templates/webpages/gobd/filter.html similarity index 95% rename from templates/webpages/gdpdu/filter.html rename to templates/webpages/gobd/filter.html index ead33877e..aaffd0286 100644 --- a/templates/webpages/gdpdu/filter.html +++ b/templates/webpages/gobd/filter.html @@ -26,7 +26,7 @@ -[% L.hidden_tag('action', 'Gdpdu/dispatch') %] +[% L.hidden_tag('action', 'GoBD/dispatch') %] [% L.submit_tag('action_export', LxERP.t8('Export')) %] -- 2.20.1