From 7c6047e7173f2b9f76c17ebe6d578d9cda397b81 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sun, 11 Sep 2011 14:24:23 +0000 Subject: [PATCH] Check correct field when testing if date_opened was set for a document. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21250 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/plugins/bi_import/bi_import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/bi_import/bi_import.c b/src/plugins/bi_import/bi_import.c index 4b70636d42..d85f5099d1 100644 --- a/src/plugins/bi_import/bi_import.c +++ b/src/plugins/bi_import/bi_import.c @@ -578,7 +578,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book, gnc_search_customer_on_id (book, owner_id)); gncInvoiceSetOwner (invoice, owner); gncInvoiceSetCurrency (invoice, gncOwnerGetCurrency (owner)); // Set the invoice currency based on the owner - if (!(g_ascii_strcasecmp (type, ""))) // If a date is specified in CSV + if (strlen (date_opened) != 0) // If a date is specified in CSV { qof_scan_date (date_opened, &day, &month, &year); gncInvoiceSetDateOpened (invoice,