[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/Commissions IBCommissi
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-02-13 21:08:48
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Commissions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24109/b4_Business/a1_Financial/a2_Accounting/Commissions Modified Files: IBCommission.cs Log Message: Fixed to handle AddCash transactions and WithDraw transactions. Index: IBCommission.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Commissions/IBCommission.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IBCommission.cs 13 Feb 2005 00:42:58 -0000 1.1 --- IBCommission.cs 13 Feb 2005 21:08:39 -0000 1.2 *************** *** 34,39 **** get { ! double returnValue = this.transaction.Quantity * 0.01; ! return Math.Max( returnValue , 1.0 ); } } --- 34,47 ---- get { ! double returnValue; ! if ( ( this.transaction.Type == TransactionType.AddCash ) || ! ( this.transaction.Type == TransactionType.Withdraw ) ) ! returnValue = 0; ! else ! { ! returnValue = this.transaction.Quantity * 0.01; ! returnValue = Math.Max( returnValue , 1.0 ); ! } ! return returnValue; } } |