X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdn.pl;h=c16f6c34c27464b94dea1f931d65422686cf1cf8;hb=70539eb46c15dd0cb8e7965cc5090c90510ff18d;hp=ee77c822472979bf01d347700a039ec46b22ce4c;hpb=fd6900cca59ac4a35d5fa4c20db91165f9310ea3;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index ee77c8224..c16f6c34c 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -24,516 +24,151 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Dunning process module # #====================================================================== +use POSIX qw(strftime); + use SL::IS; -use SL::PE; use SL::DN; -use Data::Dumper; - +use SL::DB::Department; +use SL::DB::Dunning; +use SL::Helper::Flash qw(flash); +use SL::Locale::String qw(t8); +use SL::ReportGenerator; + +require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; require "bin/mozilla/io.pl"; -require "bin/mozilla/arap.pl"; + +use strict; 1; sub edit_config { - $lxdebug->enter_sub(); - - # edit all dunning config data - - $form->header; - DN->get_config(\%myconfig, \%$form); - $form->{title} = $locale->text('Edit Dunning Process Config'); - - $form->{callback} = - "$form->{script}?action=edit_config&login=$form->{login}&password=$form->{password}" - unless $form->{callback}; - - @column_index = qw(dunning_level dunning_description active auto email payment_terms terms fee interest_rate template); - - $column_header{dunning_level} = - qq|