diff --git a/controllers/leases_controller.php b/controllers/leases_controller.php index d58bf8a..036825b 100644 --- a/controllers/leases_controller.php +++ b/controllers/leases_controller.php @@ -341,6 +341,19 @@ class LeasesController extends AppController { } + /************************************************************************** + ************************************************************************** + ************************************************************************** + * action: refund + * - Provides user with a refund + * REVISIT : 20090710 + * Should this be a customer function? + */ + + function refund($id) { + } + + /************************************************************************** ************************************************************************** ************************************************************************** diff --git a/controllers/ledger_entries_controller.php b/controllers/ledger_entries_controller.php index 6675547..dfaa832 100644 --- a/controllers/ledger_entries_controller.php +++ b/controllers/ledger_entries_controller.php @@ -363,7 +363,10 @@ class LedgerEntriesController extends AppController { if ((!$entry['DebitLedger']['Account']['trackable'] || $stats['debit']['amount_reconciled'] == 0) && (!$entry['CreditLedger']['Account']['trackable'] || - $stats['credit']['amount_reconciled'] == 0)) + $stats['credit']['amount_reconciled'] == 0) + + || 1 // REVISIT : 20090711 : Testing + ) { // Set up dynamic menu items $this->sidemenu_links[] =