Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Bill.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import java.time.LocalDate;

public class Bill {
private int id;
private double price;
// private Order order;
private LocalDate date;

// public Bill(int id, double price, Order order) {
// this.id = id;
// this.price = price;
// this.order = order;
// date = LocalDate.now();
// }

public String transcript() {
StringBuilder transcript = new StringBuilder();

transcript.append("ID of transaction: ");
transcript.append(id + "\n");
transcript.append("Price: ");
transcript.append(price + "\n");
transcript.append("Order ID: ");
// transcript.append(order.getId + "\n");

return transcript.toString();
}
}