Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class Balance

    Object
       |
       +--GrvObject
             |
             +--Balance

class Balance
extends GrvObject

DOMAIN-OBJECT: This class encapsulates an Account balance.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in rats.js

Constructor Summary
`Balance ()`

Method Summary
`boolean` | `anyTransactionsInEdit()` return whether any of our transactions are in Edit mode
`String` | `dump()` return the debug details of "this"
`Float` | `getNet(<String> b)` return sum of specified balance for this balance and all its transactions.
`Float` | `getNetA()` convenience call to getNet() for balance A
`Float` | `getNetB()` convenience call to getNet() for balance B
`Float` | `getNetC()` convenience call to getNet() for balance C
`Float` | `getNetD()` convenience call to getNet() for balance D
`Float` | `getNetTotal()` return sum of all Net totals for this balance
`String` | `getTitle()` return the formatted title for this balance
`Float` | `getTotal()` return sum of balances for this balance
`Transaction` | `getTransaction( <int> rIndex )` return the specified transaction
`boolean` | `isValid()` return whether all of our transactions are valid
`void` | `konstructor( <String> sdate, <Float> balA, <Float> balB, <Float> balC, <Float> balD, <boolean> reconciled, <String> system, <MVCListModel> rList )`

Methods inherited from class GrvObject
`souper`

Constructor Detail

### Balance

    Balance()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Method Detail

### anyTransactionsInEdit

    boolean anyTransactionsInEdit()

return whether any of our transactions are in Edit mode

### dump

    String dump()

return the debug details of "this"

### getNet

    Float getNet(<String> b)

return sum of specified balance for this balance and all its transactions.

Parameters:

`b` - attribute name of desired balance

### getNetA

    Float getNetA()

convenience call to getNet() for balance A

### getNetB

    Float getNetB()

convenience call to getNet() for balance B

### getNetC

    Float getNetC()

convenience call to getNet() for balance C

### getNetD

    Float getNetD()

convenience call to getNet() for balance D

### getNetTotal

    Float getNetTotal()

return sum of all Net totals for this balance

### getTitle

    String getTitle()

return the formatted title for this balance

### getTotal

    Float getTotal()

return sum of balances for this balance

### getTransaction

    Transaction getTransaction( <int> rIndex )

return the specified transaction

Parameters:

`rIndex` - index into transaction list for this balance

### isValid

    boolean isValid()

return whether all of our transactions are valid

### konstructor

    void konstructor( <String> sdate, <Float> balA, <Float> balB, <Float> balC, <Float> balD, <boolean> reconciled, <String> system, <MVCListModel> rList )

Parameters:

`sdate` - balance date

`balA` - balance A

`balB` - balance B

`balC` - balance C

`balD` - balance D

`reconciled` - true if balance is already reconciled

`system` - where did balance come from

`rList` - Transaction list

Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Jan 6 12:46:18 2011