r21250 - gnucash/trunk/src/plugins/bi_import - Check correct field when testing if date_opened was set for a document.
Geert Janssens
gjanssens at code.gnucash.org
Sun Sep 11 10:24:23 EDT 2011
Author: gjanssens
Date: 2011-09-11 10:24:23 -0400 (Sun, 11 Sep 2011)
New Revision: 21250
Trac: http://svn.gnucash.org/trac/changeset/21250
Modified:
gnucash/trunk/src/plugins/bi_import/bi_import.c
Log:
Check correct field when testing if date_opened was set for a document.
Modified: gnucash/trunk/src/plugins/bi_import/bi_import.c
===================================================================
--- gnucash/trunk/src/plugins/bi_import/bi_import.c 2011-09-11 14:24:13 UTC (rev 21249)
+++ gnucash/trunk/src/plugins/bi_import/bi_import.c 2011-09-11 14:24:23 UTC (rev 21250)
@@ -578,7 +578,7 @@
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,
More information about the gnucash-changes
mailing list