/* Generated by G-Wrap: an experimental C->Guile wrapper engine */

#include <guile/gh.h>
#include <libguile.h>
#include <string.h>
#include <g-wrap-compatibility.h>

#include "gw-business-gnome.h"
#include <dialog-options.h>
#include <dialog-utils.h>
#include <druid-utils.h>
#include <gtk/gtk.h>
#include <gnc-amount-edit.h>
#include <gnc-date-edit.h>
#include <gnc-gnome-utils.h>
#include <gnc-gui-query.h>
#include <gnc-html.h>
#include <gnc-mdi-utils.h>
#include <gnc-menu-extensions.h>
#include <gnc-ui.h>
#include <print-session.h>
#include <g-wrap-wct.h>
#include <glib.h>
#include <guid.h>
#include <Query.h>
#include <Backend.h>
#include <Group.h>
#include <gnc-book.h>
#include <gnc-session.h>
#include <gnc-session-scm.h>
#include <gnc-engine-util.h>
#include <gnc-event.h>
#include <gnc-lot.h>
#include <date.h>
#include <engine-helpers.h>
#include <gnc-engine.h>
#include <gnc-commodity.h>
#include <gnc-numeric.h>
#include <g-wrap-wct.h>
#include <gncAddress.h>
#include <gncBillTerm.h>
#include <gncCustomer.h>
#include <gncEmployee.h>
#include <gncEntry.h>
#include <gncInvoice.h>
#include <gncJob.h>
#include <gncOrder.h>
#include <gncOwner.h>
#include <gncTaxTable.h>
#include <gncVendor.h>
#include <gncBusGuile.h>
#include <g-wrap-wct.h>
#include <business-urls.h>
#include <dialog-billterms.h>
#include <dialog-customer.h>
#include <dialog-employee.h>
#include <dialog-invoice.h>
#include <dialog-job.h>
#include <dialog-order.h>
#include <dialog-payment.h>
#include <dialog-vendor.h>
static SCM gw__tmp938_wct_info_for__gnc_url_type_ = SCM_BOOL_F;
static SCM gw__tmp20_wct_info_for__gnc_Book__ = SCM_BOOL_F;
static SCM gw__tmp566_wct_info_for__gnc_GncVendor__ = SCM_BOOL_F;
static SCM gw__tmp564_wct_info_for__gnc_GncOwner__ = SCM_BOOL_F;
static SCM gw__tmp563_wct_info_for__gnc_GncOrder__ = SCM_BOOL_F;
static SCM gw__tmp562_wct_info_for__gnc_GncJob__ = SCM_BOOL_F;
static SCM gw__tmp561_wct_info_for__gnc_GncInvoice__ = SCM_BOOL_F;
static SCM gw__tmp559_wct_info_for__gnc_GncEmployee__ = SCM_BOOL_F;
static SCM gw__tmp558_wct_info_for__gnc_GncCustomer__ = SCM_BOOL_F;
enum GW__ErrorStatus
{
  GW__ERR_NONE,
  GW__ERR_MISC,
  GW__ERR_MEMORY,
  GW__ERR_RANGE,
  GW__ERR_TYPE,
  GW__ERR_ARGC,
  GW__ERR_ARG_RANGE,
  GW__ERR_ARG_TYPE
};
 
static void
gw__handle_wrapper_error(enum GW__ErrorStatus status,
                         const char *func_name,
                         unsigned int arg_pos,
                         const char *misc_msg,
                         SCM scm_data) __attribute__ ((noreturn));

static void
gw__handle_wrapper_error(enum GW__ErrorStatus status,
                         const char *func_name,
                         unsigned int arg_pos,
                         const char *misc_msg,
                         SCM scm_data)
{
  static SCM out_of_range_key = SCM_BOOL_F;
  static SCM wrong_type_key = SCM_BOOL_F;

  if(SCM_FALSEP(out_of_range_key))
    out_of_range_key = scm_permanent_object(scm_c_make_keyword("out-of-range"));
  if(SCM_FALSEP(wrong_type_key))
    wrong_type_key = scm_permanent_object(scm_c_make_keyword("wrong-type"));

  switch(status) {
  case GW__ERR_NONE:
    scm_misc_error(func_name,
                   "asked to handle error when there wasn't one",
                   SCM_EOL);
    break;
  case GW__ERR_MISC:
    /* scm_data is a list of format args for misc_msg */
    scm_misc_error(func_name, misc_msg, scm_data); break;
  case GW__ERR_MEMORY:
    scm_memory_error(func_name); break;
  case GW__ERR_RANGE:
    scm_error (out_of_range_key,
	       func_name,
	       "Out of range: ~S",
               scm_cons (scm_data, SCM_EOL),
	       SCM_BOOL_F);
    break;
  case GW__ERR_TYPE:
    scm_error(wrong_type_key,
              func_name,
              "Wrong type: ",
              scm_cons (scm_data, SCM_EOL),
              SCM_BOOL_F);
    break;
  case GW__ERR_ARGC:
    scm_wrong_num_args(scm_makfrom0str(func_name)); break;
  case GW__ERR_ARG_RANGE:
    /* scm_data is the bad arg */
    scm_out_of_range(func_name, scm_data); break;
  case GW__ERR_ARG_TYPE:
    /* scm_data is the bad arg */
    scm_wrong_type_arg(func_name, arg_pos, scm_data); break;
  default:
    scm_misc_error(func_name,
                   "asked to handle nonexistent gw:error type: ~S",
                   scm_cons(scm_long2num(status), SCM_EOL));    
    break;
  };
  exit(1);
}
static char * gw__tmp1061_gnc_ui_billterms_window_new_namestr = "gnc:billterms-new";
static SCM gw__tmp1060_gnc_ui_billterms_window_new_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GNCBook* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_billterms_window_new (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1061_gnc_ui_billterms_window_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1063_gnc_ui_customer_new_namestr = "gnc:customer-new";
static SCM gw__tmp1062_gnc_ui_customer_new_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GNCBook* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_customer_new (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1063_gnc_ui_customer_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1065_gnc_ui_customer_edit_namestr = "gnc:customer-edit";
static SCM gw__tmp1064_gnc_ui_customer_edit_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncCustomer* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp558_wct_info_for__gnc_GncCustomer__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_customer_edit (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1065_gnc_ui_customer_edit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1067_gnc_customer_search_namestr = "gnc:customer-search";
static SCM gw__tmp1066_gnc_customer_search_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncCustomer* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp558_wct_info_for__gnc_GncCustomer__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_customer_search (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1067_gnc_customer_search_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1069_gnc_ui_employee_new_namestr = "gnc:employee-new";
static SCM gw__tmp1068_gnc_ui_employee_new_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GNCBook* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_employee_new (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1069_gnc_ui_employee_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1071_gnc_ui_employee_edit_namestr = "gnc:employee-edit";
static SCM gw__tmp1070_gnc_ui_employee_edit_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncEmployee* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp559_wct_info_for__gnc_GncEmployee__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_employee_edit (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1071_gnc_ui_employee_edit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1073_gnc_employee_search_namestr = "gnc:employee-search";
static SCM gw__tmp1072_gnc_employee_search_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncEmployee* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp559_wct_info_for__gnc_GncEmployee__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_employee_search (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1073_gnc_employee_search_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1075_gnc_ui_invoice_new_namestr = "gnc:invoice-new";
static SCM gw__tmp1074_gnc_ui_invoice_new_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncOwner* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_ui_invoice_new (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1075_gnc_ui_invoice_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1077_gnc_ui_invoice_edit_namestr = "gnc:invoice-edit";
static SCM gw__tmp1076_gnc_ui_invoice_edit_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncInvoice* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp561_wct_info_for__gnc_GncInvoice__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_invoice_edit (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1077_gnc_ui_invoice_edit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1079_gnc_invoice_search_namestr = "gnc:invoice-search";
static SCM gw__tmp1078_gnc_invoice_search_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncInvoice* gw__c_arg0;
GncOwner* gw__c_arg1;
GNCBook* gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp561_wct_info_for__gnc_GncInvoice__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(gw__scm_arg2);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gnc_invoice_search (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1079_gnc_invoice_search_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1081_gnc_ui_job_new_namestr = "gnc:job-new";
static SCM gw__tmp1080_gnc_ui_job_new_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncOwner* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_ui_job_new (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1081_gnc_ui_job_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1083_gnc_ui_job_edit_namestr = "gnc:job-edit";
static SCM gw__tmp1082_gnc_ui_job_edit_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncJob* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp562_wct_info_for__gnc_GncJob__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_job_edit (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1083_gnc_ui_job_edit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1085_gnc_job_search_namestr = "gnc:job-search";
static SCM gw__tmp1084_gnc_job_search_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncJob* gw__c_arg0;
GncOwner* gw__c_arg1;
GNCBook* gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp562_wct_info_for__gnc_GncJob__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(gw__scm_arg2);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gnc_job_search (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1085_gnc_job_search_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1087_gnc_ui_order_new_namestr = "gnc:order-new";
static SCM gw__tmp1086_gnc_ui_order_new_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncOwner* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_ui_order_new (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1087_gnc_ui_order_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1089_gnc_ui_order_edit_namestr = "gnc:order-edit";
static SCM gw__tmp1088_gnc_ui_order_edit_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncOrder* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp563_wct_info_for__gnc_GncOrder__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_order_edit (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1089_gnc_ui_order_edit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1091_gnc_order_search_namestr = "gnc:order-search";
static SCM gw__tmp1090_gnc_order_search_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncOrder* gw__c_arg0;
GncOwner* gw__c_arg1;
GNCBook* gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp563_wct_info_for__gnc_GncOrder__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(gw__scm_arg2);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gnc_order_search (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1091_gnc_order_search_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1093_gnc_ui_payment_new_namestr = "gnc:payment-new";
static SCM gw__tmp1092_gnc_ui_payment_new_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncOwner* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp564_wct_info_for__gnc_GncOwner__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_ui_payment_new (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1093_gnc_ui_payment_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1095_gnc_ui_vendor_new_namestr = "gnc:vendor-new";
static SCM gw__tmp1094_gnc_ui_vendor_new_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GNCBook* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_vendor_new (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1095_gnc_ui_vendor_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1097_gnc_ui_vendor_edit_namestr = "gnc:vendor-edit";
static SCM gw__tmp1096_gnc_ui_vendor_edit_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncVendor* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp566_wct_info_for__gnc_GncVendor__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_ui_vendor_edit (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1097_gnc_ui_vendor_edit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp1099_gnc_vendor_search_namestr = "gnc:vendor-search";
static SCM gw__tmp1098_gnc_vendor_search_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GncVendor* gw__c_arg0;
GNCBook* gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp566_wct_info_for__gnc_GncVendor__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp20_wct_info_for__gnc_Book__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gnc_vendor_search (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp1099_gnc_vendor_search_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
void
gw_init_wrapset_gw_business_gnome() {
  static int gw_wrapset_initialized = 0;

  if(!gw_wrapset_initialized)
  {
    gh_eval_str("(use-modules (g-wrap runtime))");
    gh_eval_str("(gw:wrapset-register-runtime \"gw-business-gnome\")");

gh_eval_str("(use-modules (g-wrapped gw-gnome-utils))");
gh_eval_str("(use-modules (g-wrapped gw-engine))");
gh_eval_str("(use-modules (g-wrapped gw-business-core))");
gh_eval_str("(use-modules (g-wrap gw-standard))");
{
   enum GW__ErrorStatus gw__tmp1100_status_var = GW__ERR_NONE;
   SCM gw__tmp1102_err_data = SCM_UNSPECIFIED;
   char *gw__tmp1101_err_misc_msg = NULL;
   (void) gw__tmp1100_status_var;
   (void) gw__tmp1102_err_data;
   (void) gw__tmp1101_err_misc_msg;
gh_eval_str("(use-modules (gnucash business-gnome))");
if (gw__tmp1100_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1100_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1101_err_misc_msg,
                            gw__tmp1102_err_data);
}
{
   enum GW__ErrorStatus gw__tmp1103_err_status = GW__ERR_NONE;
   SCM gw__tmp1105_err_data = SCM_UNSPECIFIED;
   char *gw__tmp1104_err_misc_msg = NULL;
   (void) gw__tmp1103_err_status;
   (void) gw__tmp1105_err_data;
   (void) gw__tmp1104_err_misc_msg;
    gw__tmp938_wct_info_for__gnc_url_type_ = gh_eval_str("<gnc:url-type>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp20_wct_info_for__gnc_Book__ = gh_eval_str("<gnc:Book*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp566_wct_info_for__gnc_GncVendor__ = gh_eval_str("<gnc:GncVendor*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp564_wct_info_for__gnc_GncOwner__ = gh_eval_str("<gnc:GncOwner*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp563_wct_info_for__gnc_GncOrder__ = gh_eval_str("<gnc:GncOrder*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp562_wct_info_for__gnc_GncJob__ = gh_eval_str("<gnc:GncJob*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp561_wct_info_for__gnc_GncInvoice__ = gh_eval_str("<gnc:GncInvoice*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp559_wct_info_for__gnc_GncEmployee__ = gh_eval_str("<gnc:GncEmployee*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
    gw__tmp558_wct_info_for__gnc_GncCustomer__ = gh_eval_str("<gnc:GncCustomer*>");
if (gw__tmp1103_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1103_err_status,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1104_err_misc_msg,
                            gw__tmp1105_err_data);
}
{
   enum GW__ErrorStatus gw__tmp1106_status_var = GW__ERR_NONE;
   SCM gw__tmp1108_err_data = SCM_UNSPECIFIED;
   char *gw__tmp1107_err_misc_msg = NULL;
   (void) gw__tmp1106_status_var;
   (void) gw__tmp1108_err_data;
   (void) gw__tmp1107_err_misc_msg;
{
   SCM gw__tmp1055_scm_wrapped_value;

if(GNC_CUSTOMER_MODULE_NAME == NULL) gw__tmp1055_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp1055_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_CUSTOMER_MODULE_NAME, gw__tmp938_wct_info_for__gnc_url_type_);
if(!(gw__tmp1106_status_var != GW__ERR_NONE))  gh_define("gnc:url-type-customer",gw__tmp1055_scm_wrapped_value);
}
if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
{
   SCM gw__tmp1056_scm_wrapped_value;

if(GNC_VENDOR_MODULE_NAME == NULL) gw__tmp1056_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp1056_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_VENDOR_MODULE_NAME, gw__tmp938_wct_info_for__gnc_url_type_);
if(!(gw__tmp1106_status_var != GW__ERR_NONE))  gh_define("gnc:url-type-vendor",gw__tmp1056_scm_wrapped_value);
}
if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
{
   SCM gw__tmp1057_scm_wrapped_value;

if(GNC_EMPLOYEE_MODULE_NAME == NULL) gw__tmp1057_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp1057_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_EMPLOYEE_MODULE_NAME, gw__tmp938_wct_info_for__gnc_url_type_);
if(!(gw__tmp1106_status_var != GW__ERR_NONE))  gh_define("gnc:url-type-employee",gw__tmp1057_scm_wrapped_value);
}
if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
{
   SCM gw__tmp1058_scm_wrapped_value;

if(GNC_INVOICE_MODULE_NAME == NULL) gw__tmp1058_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp1058_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_INVOICE_MODULE_NAME, gw__tmp938_wct_info_for__gnc_url_type_);
if(!(gw__tmp1106_status_var != GW__ERR_NONE))  gh_define("gnc:url-type-invoice",gw__tmp1058_scm_wrapped_value);
}
if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
{
   SCM gw__tmp1059_scm_wrapped_value;

if(URL_TYPE_OWNERREPORT == NULL) gw__tmp1059_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp1059_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) URL_TYPE_OWNERREPORT, gw__tmp938_wct_info_for__gnc_url_type_);
if(!(gw__tmp1106_status_var != GW__ERR_NONE))  gh_define("gnc:url-type-ownerreport",gw__tmp1059_scm_wrapped_value);
}
if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1061_gnc_ui_billterms_window_new_namestr,
                     (SCM (*) ()) gw__tmp1060_gnc_ui_billterms_window_new_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1063_gnc_ui_customer_new_namestr,
                     (SCM (*) ()) gw__tmp1062_gnc_ui_customer_new_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1065_gnc_ui_customer_edit_namestr,
                     (SCM (*) ()) gw__tmp1064_gnc_ui_customer_edit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1067_gnc_customer_search_namestr,
                     (SCM (*) ()) gw__tmp1066_gnc_customer_search_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1069_gnc_ui_employee_new_namestr,
                     (SCM (*) ()) gw__tmp1068_gnc_ui_employee_new_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1071_gnc_ui_employee_edit_namestr,
                     (SCM (*) ()) gw__tmp1070_gnc_ui_employee_edit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1073_gnc_employee_search_namestr,
                     (SCM (*) ()) gw__tmp1072_gnc_employee_search_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1075_gnc_ui_invoice_new_namestr,
                     (SCM (*) ()) gw__tmp1074_gnc_ui_invoice_new_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1077_gnc_ui_invoice_edit_namestr,
                     (SCM (*) ()) gw__tmp1076_gnc_ui_invoice_edit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1079_gnc_invoice_search_namestr,
                     (SCM (*) ()) gw__tmp1078_gnc_invoice_search_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1081_gnc_ui_job_new_namestr,
                     (SCM (*) ()) gw__tmp1080_gnc_ui_job_new_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1083_gnc_ui_job_edit_namestr,
                     (SCM (*) ()) gw__tmp1082_gnc_ui_job_edit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1085_gnc_job_search_namestr,
                     (SCM (*) ()) gw__tmp1084_gnc_job_search_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1087_gnc_ui_order_new_namestr,
                     (SCM (*) ()) gw__tmp1086_gnc_ui_order_new_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1089_gnc_ui_order_edit_namestr,
                     (SCM (*) ()) gw__tmp1088_gnc_ui_order_edit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1091_gnc_order_search_namestr,
                     (SCM (*) ()) gw__tmp1090_gnc_order_search_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1093_gnc_ui_payment_new_namestr,
                     (SCM (*) ()) gw__tmp1092_gnc_ui_payment_new_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1095_gnc_ui_vendor_new_namestr,
                     (SCM (*) ()) gw__tmp1094_gnc_ui_vendor_new_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1097_gnc_ui_vendor_edit_namestr,
                     (SCM (*) ()) gw__tmp1096_gnc_ui_vendor_edit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
    gh_new_procedure(gw__tmp1099_gnc_vendor_search_namestr,
                     (SCM (*) ()) gw__tmp1098_gnc_vendor_search_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp1106_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp1106_status_var,
                            "gw_init_wrapset_gw_business_gnome",
                            0,
                            gw__tmp1107_err_misc_msg,
                            gw__tmp1108_err_data);
}
    gw_wrapset_initialized = 1;
    (void) gw__handle_wrapper_error;
  }
}
