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

Public Member Functions

String getDescription ()
 
void setDescription (String description)
 
long getId ()
 
void setId (long id)
 
int getOrderRef ()
 
void setOrderRef (int orderRef)
 
Double getPrice ()
 
void setPrice (Double price)
 
Double getQuantity ()
 
void setQuantity (Double quantity)
 
boolean isEmpty ()
 
double getAmount ()
 
Breakdown clone ()
 

Detailed Description

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

Definition at line 29 of file Breakdown.java.

Member Function Documentation

◆ clone()

Breakdown org.turro.erp.entity.Breakdown.clone ( )

Definition at line 94 of file Breakdown.java.

94  {
95  Breakdown b = new Breakdown();
96  b.setOrderRef(orderRef);
97  b.setQuantity(quantity);
98  b.setPrice(price);
99  b.setDescription(description);
100  return b;
101  }
Here is the call graph for this function:

◆ getAmount()

double org.turro.erp.entity.Breakdown.getAmount ( )

Definition at line 88 of file Breakdown.java.

88  {
89  if(price == null) return 0.0d;
90  return (quantity == null || quantity == 0.0) ? price : quantity * price;
91  }

◆ getDescription()

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

Definition at line 42 of file Breakdown.java.

42  {
43  return description;
44  }
Here is the caller graph for this function:

◆ getId()

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

Definition at line 50 of file Breakdown.java.

50  {
51  return id;
52  }
Here is the caller graph for this function:

◆ getOrderRef()

int org.turro.erp.entity.Breakdown.getOrderRef ( )

Definition at line 58 of file Breakdown.java.

58  {
59  return orderRef;
60  }
Here is the caller graph for this function:

◆ getPrice()

Double org.turro.erp.entity.Breakdown.getPrice ( )

Definition at line 66 of file Breakdown.java.

66  {
67  return price;
68  }

◆ getQuantity()

Double org.turro.erp.entity.Breakdown.getQuantity ( )

Definition at line 74 of file Breakdown.java.

74  {
75  return quantity;
76  }

◆ isEmpty()

boolean org.turro.erp.entity.Breakdown.isEmpty ( )

Definition at line 84 of file Breakdown.java.

84  {
85  return Strings.isBlank(description);
86  }
Here is the caller graph for this function:

◆ setDescription()

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

Definition at line 46 of file Breakdown.java.

46  {
47  this.description = description;
48  }
Here is the caller graph for this function:

◆ setId()

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

Definition at line 54 of file Breakdown.java.

54  {
55  this.id = id;
56  }

◆ setOrderRef()

void org.turro.erp.entity.Breakdown.setOrderRef ( int  orderRef)

Definition at line 62 of file Breakdown.java.

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

◆ setPrice()

void org.turro.erp.entity.Breakdown.setPrice ( Double  price)

Definition at line 70 of file Breakdown.java.

70  {
71  this.price = price;
72  }
Here is the caller graph for this function:

◆ setQuantity()

void org.turro.erp.entity.Breakdown.setQuantity ( Double  quantity)

Definition at line 78 of file Breakdown.java.

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

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