X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fdn.pl;h=51e046c8693a135fb16216d5b6a7f89576f1b37e;hb=549f187d3a2b1d15f96c4556714666ed954447bb;hp=b91456aba1ab6770887ef0212451f656b36d6f51;hpb=d629acd82a27e980899a044ca8b0f4becc8e94bb;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index b91456aba..419b4f4bd 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -24,522 +24,160 @@ # 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 List::Util qw(notall); +use List::MoreUtils qw(none); + use SL::IS; -use SL::PE; use SL::DN; -use Data::Dumper; - +use SL::DB::Department; +use SL::DB::Dunning; +use SL::File; +use SL::Helper::Flash qw(flash); +use SL::Locale::String qw(t8); +use SL::Presenter::EmailJournal; +use SL::Presenter::FileObject; +use SL::Presenter::WebdavObject; +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 template); - - $column_header{dunning_level} = - qq|