Index: src/backend/sql/gnc-backend-sql.c
===================================================================
--- src/backend/sql/gnc-backend-sql.c	(Revision 20205)
+++ src/backend/sql/gnc-backend-sql.c	(Arbeitskopie)
@@ -74,6 +74,7 @@
 #include "gnc-vendor-sql.h"
 
 #include "gnc-main.h"
+#include "gncInvoice.h"
 
 #if defined( S_SPLINT_S )
 #include "splint-defs.h"
@@ -170,7 +171,7 @@
 
 /* Main object load order */
 static const gchar* fixed_load_order[] =
-{ GNC_ID_BOOK, GNC_ID_COMMODITY, GNC_ID_ACCOUNT, GNC_ID_LOT, NULL };
+{ GNC_ID_BOOK, GNC_ID_COMMODITY, GNC_ID_ACCOUNT, GNC_ID_LOT, GNC_ID_INVOICE, NULL };
 
 /* Load order for objects from other modules */
 static const gchar** other_load_order = NULL;
