mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
f279678958
commit
7c6047e717
@ -578,7 +578,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
|
|||||||
gnc_search_customer_on_id (book, owner_id));
|
gnc_search_customer_on_id (book, owner_id));
|
||||||
gncInvoiceSetOwner (invoice, owner);
|
gncInvoiceSetOwner (invoice, owner);
|
||||||
gncInvoiceSetCurrency (invoice, gncOwnerGetCurrency (owner)); // Set the invoice currency based on the 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);
|
qof_scan_date (date_opened, &day, &month, &year);
|
||||||
gncInvoiceSetDateOpened (invoice,
|
gncInvoiceSetDateOpened (invoice,
|
||||||
|
Loading…
Reference in New Issue
Block a user