public abstract class ExpenseDetail extends CafetData
getDetails()| Modifier and Type | Field and Description |
|---|---|
protected int |
client |
protected Calendar |
date |
protected String |
name |
protected float |
price |
protected int |
quantity |
| Constructor and Description |
|---|
ExpenseDetail()
The Expense object is the one that stores every expense's information for
later use, it's generaly generated by the Client's method
getExpenses or even directly whith the Data
static method getClientExpenses().
|
ExpenseDetail(String name,
int client,
float price,
int quantity,
Calendar date)
ExpenseDetail stores information about a piece of a bill, it
can be acquired by the Expense's methode
getDetails() |
| Modifier and Type | Method and Description |
|---|---|
Client |
getClient()
Return the client
|
Calendar |
getDate()
Return the date of the transaction in a
Calendar object |
String |
getName()
Return the name
|
float |
getPrice()
Return the price
|
int |
getQuantity()
Return the quantity
|
protected String name
protected int client
protected float price
protected int quantity
protected Calendar date
public ExpenseDetail(String name, int client, float price, int quantity, Calendar date)
getDetails()name - the saved name of the formula/product boughtclient - the clien wich performed this transactionprice - the pricequantity - the quantity boughtdate - the date at wich the transaction has been completed (a Calendar object)ExpenseDetailpublic ExpenseDetail()
ExpenseDetailpublic final String getName()
public final Client getClient() throws APIException, IOException
IOExceptionAPIExceptionpublic final float getPrice()
public final int getQuantity()
Copyright © 2019 Nowtryz. All rights reserved.