Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fcf32b839 | ||
|
|
197884398d | ||
|
|
f170b4136d | ||
|
|
9ade6861e7 | ||
|
|
73e8df83a2 | ||
|
|
6363b3d3c1 | ||
|
|
d28e2a1728 | ||
|
|
396eac6f81 |
@@ -2,12 +2,6 @@
|
|||||||
|
|
||||||
class CustomersController extends AppController {
|
class CustomersController extends AppController {
|
||||||
|
|
||||||
// DEBUG FUNCTION ONLY!
|
|
||||||
// Call without id to update ALL customers
|
|
||||||
function force_update($id = null) {
|
|
||||||
$this->Customer->update($id);
|
|
||||||
$this->redirect(array('action'=>'index'));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
**************************************************************************
|
**************************************************************************
|
||||||
|
|||||||
@@ -148,11 +148,9 @@ class Lease extends AppModel {
|
|||||||
array('class' => 'StatementEntry',
|
array('class' => 'StatementEntry',
|
||||||
'fields' => array(),
|
'fields' => array(),
|
||||||
'conditions' => array
|
'conditions' => array
|
||||||
('SEx.lease_id = StatementEntry.lease_id',
|
('SEx.effective_date = DATE_ADD(StatementEntry.through_date, INTERVAL 1 day)',
|
||||||
'SEx.type' => 'CHARGE',
|
'SEx.lease_id = StatementEntry.lease_id',
|
||||||
'SEx.account_id' => $rent_account_id,
|
|
||||||
'SEx.reverse_transaction_id IS NULL',
|
'SEx.reverse_transaction_id IS NULL',
|
||||||
'SEx.effective_date = DATE_ADD(StatementEntry.through_date, INTERVAL 1 day)',
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user