My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.extensiblejava.financial;

import java.math.*;

public class Payment {
//Should this logic be here, or should it be in Bill and have Payable define a
//generic getPayAmount method.
public BigDecimal generateDraft(Payable payable) {
if (payable.getAuditedAmount() == null) {
return payable.getAmount();
} else {
return payable.getAuditedAmount();
}
}
}

Change log

r73 by pragkirk on Nov 5, 2009   Diff
Initial Version
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 393 bytes, 15 lines
Powered by Google Project Hosting