$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();
$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();
<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">
<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>">