simpleinvoices/simpleinvoices — pull request #9 by soif (2012-12-04 15:12:56+00:00)
Title: Fix index_id initial sort + bookmark feature

1) In invoice manage view, the table id colum should default to the index_id sorting , not to the id nor to 'index_name'.
- because id can be sorted by a different order than index_id (thinks migration to SI)
- because 'sort_name', would prevent a sort on the id (index_id), because of the prefix.

I've fixed that!
(also changed the flexi search field to index_id)

This does not change anything to peope having id and item_id in the same order, but it makes a huge diffrence for those having (like me) imported old invoices after having entered most recent ones in SI.

------

2) while there, I've added the ability to bookmark any paiments or invoice lists, adding the new useful sortname, sortorder and rp GET variables.
ie:
/invoices/?sortname=date&rp=40

BTW I used the $_REQUEST vars to allow GET + POST + Cookies queries ...

This is useful to be able to bookmark or redirect to cool list views, instead of the default id-sorted-with-15-items ones.