Skip to content

Commit 89506bb

Browse files
committed
Created update() method
1 parent 07159d9 commit 89506bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Invoice.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ public void setTotal() {
7272
public static Invoice create() {
7373
return new Invoice();
7474
}
75-
75+
76+
public void update() {
77+
setSubtotal();
78+
setTotal();
79+
setTax();
80+
}
7681
}
7782

0 commit comments

Comments
 (0)