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
This commit is contained in:
Geert Janssens 2011-09-11 14:24:23 +00:00
parent f279678958
commit 7c6047e717

View File

@ -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,