GNOME Bugzilla – Bug 771246
Set Invoice/Bill items date correctly from imported CSV
Last modified: 2018-06-29 23:50:59 UTC
The importer sets the date of each line entry to the date the import is run. This should be set to the date actually specified in the CSV file. Only set it to the current date if there is no date in the field.
Pushed to maint.
Now I get warnings about Invalid timestamp in data file. Must have missed something.
I forgot to add: Fixed in maint branch and will be in the next GnuCash release scheduled for 2016-12-18. I just missed the 2.6.14 release.
FYI, a Fedora user has reported it's still not working on Fedora 25 with gnucash 2.6.15: https://bugzilla.redhat.com/show_bug.cgi?id=1418176 I've asked for more details there.
Ack. Will look into it. I'll re-open this in that case.
I tested the Fedora version and maint and the behaviour is the same. It works as it should. Left a comment on the redhat bug.
This continues to be an issue for me using Fedora 25 v2.6.16 package - I've posted updates here: https://bugzilla.redhat.com/show_bug.cgi?id=1418176
(In reply to porjo38 from comment #7) > This continues to be an issue for me using Fedora 25 v2.6.16 package - I've > posted updates here: https://bugzilla.redhat.com/show_bug.cgi?id=1418176 Not a Fedora Bug, a Gnucash bug. Ive left a comment on the Fedora bug.
In the meantime, put the dates in column 2 of the CSV to get the correct behaviour. The first date becomes the invoices' date opened and the subsequent dates are the line entry date. Which made perfect sense to me at the time.
I've copied the date to column2 and can confirm that it now works in v2.6.16.
There are 2 date columns. I'm not sure that the two are required but clearly the line/item date should be as specified in the import. Does the date opened matter? It doesn't to me as long as the line items date are correct. In my useage I sometimes open invoices before the work is done and sometimes after. To me the date_opened doesn't matter, but I guess there may be contractual/legal reasons where it does. Before I fix this I'd like some thoughts on how to handle the various invoice dates. Bearing in mind that that changes may break some peoples workflow. The next release is scheduled for 2017-03-26 and I'd like to get this fixed before then.
Pushed to maint. 5df97ba2 I'll await any comments before closing this.
No complaints so far so closing.
Thanks Mike, working for me!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=771246. Please update any external references or bookmarks.