Checking in changes from some time ago, changing the reports screen to give direct Quickbooks invoice and credits info.

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1013 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2012-06-14 01:32:44 +00:00
parent 4dffa540a0
commit b6ed57c02c
4 changed files with 16 additions and 10 deletions

View File

@@ -268,7 +268,7 @@ class StatementEntriesController extends AppController {
$datefrom = 'DATE(NOW() - INTERVAL '.($months-1).' MONTH - INTERVAL DAY(NOW())-1 DAY)';
$dateto = 'NOW()';
/* $datefrom = '"2009-01-01"'; */
/* $dateto = '"2011-12-31"'; */
/* $dateto = '"2012-12-31"'; */
$result = $this->StatementEntry->find
('all',
@@ -330,10 +330,10 @@ class StatementEntriesController extends AppController {
$this->render('chargesbymonth');
}
function incomebymonth($months = 12) {
function incomebymonth($months = 12, $invoice = false) {
$this->set('title', 'Monthly Gross Income');
$this->set('reptype', 'Gross Income');
$this->incexpbymonth(array('INCOME'), true, $months);
$this->incexpbymonth(array('INCOME'), $invoice, $months);
}
function expensebymonth($months = 12) {