Get a list of incomes

26 views
Skip to first unread message

Enguerran Weiss

unread,
Feb 5, 2015, 10:59:28 AM2/5/15
to siwapp...@googlegroups.com
Hi, 

I'm trying to get a view where I can see all incomes I had for a fixed term (e.g. all incomes I had between Oct 1 2014 and Dec 31 2014).

Is it possible to display that ?

Alan Smithee

unread,
Feb 6, 2015, 5:19:18 AM2/6/15
to siwapp...@googlegroups.com
Hi, 

Strangely enough there is no way of doing this within Siwapp (as far as I know). 

If you're happy interacting with the database here's a simple MySQL query to get all the payments made two dates:

SELECT id, SUM(amount)
FROM payment
WHERE `date` BETWEEN '2014-10-01' AND '2014-12-31' AND amount != ''; 


This one lists those same payments:

SELECT *
FROM payment
WHERE `date` BETWEEN '2014-10-01' AND '2014-12-31' AND amount != '';


Hope this helps
Reply all
Reply to author
Forward
0 new messages