From 1cd85a06d6541f15f8f080c215ae46d39d19a2db Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Mon, 4 May 2009 11:14:29 +0000 Subject: [PATCH] Bug #899 behoben: Buttons fuer neue Belege funktionierten nicht in den Listenansichten, aehnlicher Fehler in der Kundendetailmaske behoben --- bin/mozilla/ap.pl | 34 ++++++++++++++++++ bin/mozilla/ar.pl | 35 +++++++++++++++++++ templates/webpages/ct/form_footer_de.html | 2 +- templates/webpages/ct/form_footer_master.html | 2 +- 4 files changed, 71 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 24f5f245d..bf5484166 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1535,6 +1535,40 @@ sub ap_transactions { $lxdebug->leave_sub(); } + +sub vendor_invoice { + $lxdebug->enter_sub(); + + $auth->assert('invoice_edit'); + + + $form->{script} = 'ir.pl'; + $script = "ir"; + $form->{type} = "invoice"; + $locale = new Locale "$myconfig{countrycode}", "$script"; + + require "bin/mozilla/$form->{script}"; + &add; + + $lxdebug->leave_sub(); +} + +sub ap_transaction { + $lxdebug->enter_sub(); + + $auth->assert('general_ledger'); + + + $form->{script} = 'ap.pl'; + $script = "ap"; + $locale = new Locale "$myconfig{countrycode}", "$script"; + + require "bin/mozilla/$form->{script}"; + &add; + + $lxdebug->leave_sub(); +} + sub storno { $lxdebug->enter_sub(); diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index caf48362f..b8aa128a9 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1620,6 +1620,41 @@ sub ar_transactions { $lxdebug->leave_sub(); } +sub sales_invoice { + $lxdebug->enter_sub(); + + $auth->assert('invoice_edit'); + + + $form->{script} = 'is.pl'; + $script = "is"; + $form->{type} = "invoice"; + $locale = new Locale "$myconfig{countrycode}", "$script"; + + require "bin/mozilla/$form->{script}"; + &add; + + $lxdebug->leave_sub(); +} + +sub ar_transaction { + $lxdebug->enter_sub(); + + $auth->assert('general_ledger'); + + + $form->{script} = 'ar.pl'; + $script = "ar"; + $locale = new Locale "$myconfig{countrycode}", "$script"; + + require "bin/mozilla/$form->{script}"; + &add; + + $lxdebug->leave_sub(); +} + + + sub storno { $lxdebug->enter_sub(); diff --git a/templates/webpages/ct/form_footer_de.html b/templates/webpages/ct/form_footer_de.html index 12c08e8b7..dea6f2c12 100644 --- a/templates/webpages/ct/form_footer_de.html +++ b/templates/webpages/ct/form_footer_de.html @@ -10,7 +10,7 @@
- [%- IF is_cumstomer %] + [%- IF is_customer %] [%- ELSE %] diff --git a/templates/webpages/ct/form_footer_master.html b/templates/webpages/ct/form_footer_master.html index 7758a120d..532b36129 100644 --- a/templates/webpages/ct/form_footer_master.html +++ b/templates/webpages/ct/form_footer_master.html @@ -10,7 +10,7 @@
- [%- IF is_cumstomer %] + [%- IF is_customer %] [%- ELSE %] -- 2.20.1