BrightSide Workbench Full Report + Source Code
org.turro.erp.entity.Budget Class Reference
Inheritance diagram for org.turro.erp.entity.Budget:
Collaboration diagram for org.turro.erp.entity.Budget:

Public Member Functions

boolean isAccepted ()
 
void setAccepted (boolean accepted)
 
Set< BreakdowngetBreakdowns ()
 
void setBreakdowns (Set< Breakdown > breakdowns)
 
Date getBudgetDate ()
 
void setBudgetDate (Date budgetDate)
 
long getBudgetNumber ()
 
void setBudgetNumber (long budgetNumber)
 
boolean isDelivered ()
 
void setDelivered (boolean delivered)
 
String getDescription ()
 
void setDescription (String description)
 
long getId ()
 
void setId (long id)
 
OrderReference getOrderReference ()
 
void setOrderReference (OrderReference orderReference)
 
double getPrice ()
 
void setPrice (double price)
 
boolean isRefused ()
 
void setRefused (boolean refused)
 
double getUnits ()
 
void setUnits (double units)
 
void initFrom (OrderReference orderReference, long number)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file Budget.java.

Member Function Documentation

◆ getBreakdowns()

Set<Breakdown> org.turro.erp.entity.Budget.getBreakdowns ( )

Definition at line 66 of file Budget.java.

66  {
67  return breakdowns;
68  }

◆ getBudgetDate()

Date org.turro.erp.entity.Budget.getBudgetDate ( )

Definition at line 74 of file Budget.java.

74  {
75  return budgetDate;
76  }

◆ getBudgetNumber()

long org.turro.erp.entity.Budget.getBudgetNumber ( )

Definition at line 82 of file Budget.java.

82  {
83  return budgetNumber;
84  }

◆ getDescription()

String org.turro.erp.entity.Budget.getDescription ( )

Definition at line 98 of file Budget.java.

98  {
99  return description;
100  }

◆ getId()

long org.turro.erp.entity.Budget.getId ( )

Definition at line 106 of file Budget.java.

106  {
107  return id;
108  }

◆ getOrderReference()

OrderReference org.turro.erp.entity.Budget.getOrderReference ( )

Definition at line 114 of file Budget.java.

114  {
115  return orderReference;
116  }

◆ getPrice()

double org.turro.erp.entity.Budget.getPrice ( )

Definition at line 122 of file Budget.java.

122  {
123  return price;
124  }

◆ getUnits()

double org.turro.erp.entity.Budget.getUnits ( )

Definition at line 138 of file Budget.java.

138  {
139  return units;
140  }

◆ initFrom()

void org.turro.erp.entity.Budget.initFrom ( OrderReference  orderReference,
long  number 
)

Definition at line 148 of file Budget.java.

148  {
149  setOrderReference(orderReference);
150  setBudgetDate(new Date());
151  setBudgetNumber(number);
152  setDescription(orderReference.getSomeDescription());
153  setAccepted(false);
154  setRefused(false);
155  setDelivered(false);
156  setUnits(orderReference.getQuantity());
157  setPrice(orderReference.getPrice());
158  for(Breakdown breakdown : orderReference.getBreakdowns()) {
159  breakdowns.add(breakdown.clone());
160  }
161  }
void setPrice(double price)
Definition: Budget.java:126
void setUnits(double units)
Definition: Budget.java:142
void setDescription(String description)
Definition: Budget.java:102
void setAccepted(boolean accepted)
Definition: Budget.java:62
void setRefused(boolean refused)
Definition: Budget.java:134
void setOrderReference(OrderReference orderReference)
Definition: Budget.java:118
void setBudgetNumber(long budgetNumber)
Definition: Budget.java:86
void setDelivered(boolean delivered)
Definition: Budget.java:94
void setBudgetDate(Date budgetDate)
Definition: Budget.java:78
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAccepted()

boolean org.turro.erp.entity.Budget.isAccepted ( )

Definition at line 58 of file Budget.java.

58  {
59  return accepted;
60  }

◆ isDelivered()

boolean org.turro.erp.entity.Budget.isDelivered ( )

Definition at line 90 of file Budget.java.

90  {
91  return delivered;
92  }

◆ isRefused()

boolean org.turro.erp.entity.Budget.isRefused ( )

Definition at line 130 of file Budget.java.

130  {
131  return refused;
132  }

◆ setAccepted()

void org.turro.erp.entity.Budget.setAccepted ( boolean  accepted)

Definition at line 62 of file Budget.java.

62  {
63  this.accepted = accepted;
64  }
Here is the caller graph for this function:

◆ setBreakdowns()

void org.turro.erp.entity.Budget.setBreakdowns ( Set< Breakdown breakdowns)

Definition at line 70 of file Budget.java.

70  {
71  this.breakdowns = breakdowns;
72  }

◆ setBudgetDate()

void org.turro.erp.entity.Budget.setBudgetDate ( Date  budgetDate)

Definition at line 78 of file Budget.java.

78  {
79  this.budgetDate = budgetDate;
80  }
Here is the caller graph for this function:

◆ setBudgetNumber()

void org.turro.erp.entity.Budget.setBudgetNumber ( long  budgetNumber)

Definition at line 86 of file Budget.java.

86  {
87  this.budgetNumber = budgetNumber;
88  }
Here is the caller graph for this function:

◆ setDelivered()

void org.turro.erp.entity.Budget.setDelivered ( boolean  delivered)

Definition at line 94 of file Budget.java.

94  {
95  this.delivered = delivered;
96  }
Here is the caller graph for this function:

◆ setDescription()

void org.turro.erp.entity.Budget.setDescription ( String  description)

Definition at line 102 of file Budget.java.

102  {
103  this.description = description;
104  }
Here is the caller graph for this function:

◆ setId()

void org.turro.erp.entity.Budget.setId ( long  id)

Definition at line 110 of file Budget.java.

110  {
111  this.id = id;
112  }

◆ setOrderReference()

void org.turro.erp.entity.Budget.setOrderReference ( OrderReference  orderReference)

Definition at line 118 of file Budget.java.

118  {
119  this.orderReference = orderReference;
120  }
Here is the caller graph for this function:

◆ setPrice()

void org.turro.erp.entity.Budget.setPrice ( double  price)

Definition at line 126 of file Budget.java.

126  {
127  this.price = price;
128  }
Here is the caller graph for this function:

◆ setRefused()

void org.turro.erp.entity.Budget.setRefused ( boolean  refused)

Definition at line 134 of file Budget.java.

134  {
135  this.refused = refused;
136  }
Here is the caller graph for this function:

◆ setUnits()

void org.turro.erp.entity.Budget.setUnits ( double  units)

Definition at line 142 of file Budget.java.

142  {
143  this.units = units;
144  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: