[Webfunds-commits] java/webfunds/client AccountTreeModel.java
Ian Grigg
iang@cypherpunks.ai
Sun, 24 Sep 2000 19:14:30 -0400 (AST)
iang 00/09/24 19:14:30
Modified: webfunds/client AccountTreeModel.java
Log:
uses new units methods from Contract rather than Currency
Revision Changes Path
1.21 +7 -5 java/webfunds/client/AccountTreeModel.java
Index: AccountTreeModel.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/AccountTreeModel.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- AccountTreeModel.java 2000/04/22 22:16:51 1.20
+++ AccountTreeModel.java 2000/09/24 23:14:30 1.21
@@ -1,5 +1,5 @@
/*
- * $Id: AccountTreeModel.java,v 1.20 2000/04/22 22:16:51 iang Exp $
+ * $Id: AccountTreeModel.java,v 1.21 2000/09/24 23:14:30 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -181,15 +181,17 @@
if(column == 1)
{
long amount = wi.getValue(acct, con.getId(), false);
- return new AccountRendererData(con, con.getAmount(amount),
- 0, false);
+ return new AccountRendererData(con,
+ con.getUnitsOfAccount(amount),
+ 0, false);
}
else
{
long amount = wi.getValue(acct, con.getId(), false);
long amountpend = wi.getValue(acct, con.getId(), true);
- return new AccountRendererData(con, con.getAmount(amount),
- con.getAmount(amount + amountpend), true);
+ return new AccountRendererData(con,
+ con.getUnitsOfAccount(amount),
+ con.getUnitsOfAccount(amount + amountpend), true);
}
}
return new AccountRendererData(null, 0, 0, false);