Fixed the problem with zero dollar balance forward entries when closing a ledger.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@422 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-30 02:17:49 +00:00
parent 25e3c87213
commit e4426cde55
2 changed files with 5 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ class TransactionsController extends AppController {
// have their corresponding account ledgers closed.
$type_ids = $close_type_ids = array();
foreach ($this->data['TenderType'] AS $type_id => $type) {
if (!$type['checked'])
if (empty($type['checked']))
continue;
$type_ids[] = $type_id;