Ledger has the potential as being used as Balance tracker. I just completed a simple module (actually combination of fork of ledger account entry and balance tracker (http://drupal.org/project/balance_tracker) ) This is an api that developers can use to credit and debit accounts.
Developers must prepare the values as:

$params = array();
$params['tid'] = 1;//Used for drupal commerce transaction
$params['aid'] =2 ; // Account id of ledger account
$params['uid'] = 10701; // User id of the user that this balance belongs to
$params['value'] = 80; //Amount of money that will be entered to balance
$params['order_id'] = 5; // Used for drupal commerce order
$params['description'] ='asdas'; // Description of this balance entry
$params['type'] = 'debit'; // Type of the balance (No need to enter - for debit)
$params['currency_code'] = 'USD'; // Type of currency

ledger_balance_tracker_debit_account($params) // use this function to debit account

ledger_balance_tracker_credit_account($params); // use this function to credit account

This module is entity api based. Therefore, you can use entity functions such as ledger_balance_tracker_load($id) to load balance tracker entity.

I created two views where admin can see all balance and one view for users to see their balance.
By the way this module depends on views_summarize (http://drupal.org/project/views_summarize)
Your comments are most welcome.

CommentFileSizeAuthor
ledger_balance_tracker.zip11.18 KBzulfierken

Comments

m.stenta’s picture

Closing some old issues in the queue... This looks like an interesting module, but I'm not 100% sure what it's for, and I don't think it will be integrated into Ledger in any way. Maybe it will be useful to others. If so, I think it should be a separate contrib project, rather than part of Ledger itself.

m.stenta’s picture

Status: Active » Closed (works as designed)