FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Account_attribute_Model Class Reference
Inheritance diagram for Account_attribute_Model:
ORM

Public Member Functions

 get_accounting_system ($limit_from=0, $limit_results=20, $order_by= 'id', $order_by_direction= 'asc', $filter_sql= '', $date_sql= '')
 Accounting system requires special query.
 get_accounting_system_count ($filter_sql= '')
 Gets accounting system count.
 get_account_attributes ()
 Gets account attributes.

Public Attributes

const CASH = '211000'
const BANK = '221000'
const CREDIT = '221100'
const OPERATING = '221101'
const INFRASTRUCTURE = '221102'
const PROJECT = '221103'
const BANK_DEBTS = '231000'
const PURCHASERS = '311000'
const SUPPLIERS = '321000'
const BANK_FEES = '549001'
const BANK_INTERESTS = '644000'
const MEMBER_FEES = '684000'
const TIME_DEPOSITS_INTERESTS = '655000'
const TIME_DEPOSITS = '259000'

Protected Attributes

 $has_one = array('account')

Member Function Documentation

Account_attribute_Model::get_account_attributes ( )

Gets account attributes.

Returned are only that attributes which have at least one account.

Author
Jiri Svitak
Returns
Mysql_Result
Account_attribute_Model::get_accounting_system (   $limit_from = 0,
  $limit_results = 20,
  $order_by = 'id',
  $order_by_direction = 'asc',
  $filter_sql = '',
  $date_sql = '' 
)

Accounting system requires special query.

For every account type it counts balance. For example credit accounts 221100 is one account representing money on all credit accounts in system.

Returns
Mysql_Result
Account_attribute_Model::get_accounting_system_count (   $filter_sql = '')

Gets accounting system count.

Parameters
integer$filter_values
Returns
integer

The documentation for this class was generated from the following file: