X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fct.pl;h=9e5e18869ff4673d1b7a875362e5619cc6c9be87;hb=549f187d3a2b1d15f96c4556714666ed954447bb;hp=aa8459d7d7e8c53b598e9fdd9e6e797edb3b3bb6;hpb=72539cb39a3d19f930a8e0e41e46bf41afe9a8f1;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index aa8459d7d..0a62ab538 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -25,7 +25,8 @@ # 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. #====================================================================== # # customer/vendor module @@ -36,1155 +37,475 @@ # $locale->text('Vendors') # $locale->text('Add Customer') # $locale->text('Add Vendor') +# $locale->text('Edit Customer') +# $locale->text('Edit Vendor') +# $locale->text('Customer saved!') +# $locale->text('Vendor saved!') +# $locale->text('Customer deleted!') +# $locale->text('Cannot delete customer!') +# $locale->text('Vendor deleted!') +# $locale->text('Cannot delete vendor!') -use SL::CT; +use POSIX qw(strftime); +use SL::CT; +use SL::CTI; +use SL::CVar; +use SL::Request qw(flatten); +use SL::DB::Business; +use SL::DB::Default; +use SL::DB::DeliveryTerm; +use SL::ReportGenerator; +use SL::Locale::String qw(t8); +use SL::MoreCommon qw(uri_encode); +use SL::ZUGFeRD; + +require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; + +use strict; 1; # end of main -sub add { - $lxdebug->enter_sub(); - - $form->{title} = "Add"; - - $form->{callback} = - "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&password=$form->{password}" - unless $form->{callback}; - - CT->taxaccounts(\%myconfig, \%$form); - - &form_header; - &form_footer; - - $lxdebug->leave_sub(); +sub _zugferd_settings { + return ([ -1, $::locale->text('Use settings from client configuration') ], + @SL::ZUGFeRD::customer_settings); } sub search { - $lxdebug->enter_sub(); - - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); - - if ($form->{db} eq 'vendor') { - $gifi = qq| -