+ $main::lxdebug->leave_sub();
+}
+
+
+# Functions to call add routines beneath different reports
+
+sub sales_invoice {
+ $main::lxdebug->enter_sub();
+
+ print $::form->redirect_header('is.pl?action=add&type=invoice');
+
+ $main::lxdebug->leave_sub();
+}
+
+sub ar_transaction {
+ $main::lxdebug->enter_sub();
+
+ print $::form->redirect_header('ar.pl?action=add');
+
+ $main::lxdebug->leave_sub();
+}
+
+sub vendor_invoice {
+ $main::lxdebug->enter_sub();
+
+ print $::form->redirect_header('ir.pl?action=add&type=invoice');
+
+ $main::lxdebug->leave_sub();
+}
+
+sub ap_transaction {
+ $main::lxdebug->enter_sub();
+
+ print $::form->redirect_header('ap.pl?action=add');
+
+ $main::lxdebug->leave_sub();
+}
+
+sub gl_transaction {
+ $main::lxdebug->enter_sub();
+
+ print $::form->redirect_header('gl.pl?action=add');
+
+ $main::lxdebug->leave_sub();
+}
+
+if ($::use_rdbo) {
+ eval {
+ require SL::DB::Helper::Mappings;
+ sub db {
+ goto &SL::DB::Helper::Mappings::db;
+ }
+ } or die $@;