simpleinvoices/simpleinvoices — pull request #8 by soif (2012-12-04 14:31:52+00:00)
Title: Fix same day date sort

fixes the date Sort, when multiple invoices or payments are at the same date.

example:
Invoice (id, date) table sorted by ID
- 1, jan 1
- 2, fev 1
- 3, apr 1
- 4, apr 1

Invoice (id, date) table sorted by Date Desc
- 3, apr 1 <--
- 4, apr 1 <--
- 2, fev 1
- 1, jan 1

Invoice (id, date) table sorted by Date Desc AFTER my Fix
- 4, apr 1 <--
- 3, apr 1 <--
- 2, fev 1
- 1, jan 1

----------
I've just added a current time to the date on invoice or payment creation.
If the time is provided by the jquery calendar, and not equal to "00:00:00", it will be used instead.

I can relocate or rename the SqlDateWithTime Function, as you wish.

HTH