Bug #899 behoben: Buttons fuer neue Belege funktionierten nicht in den Listenansichte...
authorPhilip Reetz <p.reetz@linet-services.de>
Mon, 4 May 2009 11:14:29 +0000 (11:14 +0000)
committerPhilip Reetz <p.reetz@linet-services.de>
Mon, 4 May 2009 11:14:29 +0000 (11:14 +0000)
bin/mozilla/ap.pl
bin/mozilla/ar.pl
templates/webpages/ct/form_footer_de.html
templates/webpages/ct/form_footer_master.html

index 24f5f24..bf54841 100644 (file)
@@ -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();
 
index caf4836..b8aa128 100644 (file)
@@ -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();
 
index 12c08e8..dea6f2c 100644 (file)
@@ -10,7 +10,7 @@
 <br>
   <input class="submit" type="submit" name="action" accesskey="s" value="Speichern">
   <input class="submit" type="submit" name="action" accesskey="s" value="Speichern und schließen">
-  [%- IF is_cumstomer %]
+  [%- IF is_customer %]
   <input class="submit" type="submit" name="action" value="Speichern und Debitorenbuchung erfassen">
   [%- ELSE %]
   <input class="submit" type="submit" name="action" value="Speichern und Kreditorenbuchung erfassen">
index 7758a12..532b361 100644 (file)
@@ -10,7 +10,7 @@
 <br>
   <input class="submit" type="submit" name="action" accesskey="s" value="<translate>Save</translate>">
   <input class="submit" type="submit" name="action" accesskey="s" value="<translate>Save and Close</translate>">
-  [%- IF is_cumstomer %]
+  [%- IF is_customer %]
   <input class="submit" type="submit" name="action" value="<translate>Save and AR Transaction</translate>">
   [%- ELSE %]
   <input class="submit" type="submit" name="action" value="<translate>Save and AP Transaction</translate>">