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

Public Member Functions

 ProductUsageValuation (IProduct product)
 
 ProductUsageValuation (long productId, long providerId, long providerProductId, String description)
 
double getUnitCost ()
 
double getUnitPrice ()
 

Detailed Description

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

Definition at line 28 of file ProductUsageValuation.java.

Constructor & Destructor Documentation

◆ ProductUsageValuation() [1/2]

org.turro.erp.task.ProductUsageValuation.ProductUsageValuation ( IProduct  product)

Definition at line 34 of file ProductUsageValuation.java.

34  {
35  this.product = product;
36  }

◆ ProductUsageValuation() [2/2]

org.turro.erp.task.ProductUsageValuation.ProductUsageValuation ( long  productId,
long  providerId,
long  providerProductId,
String  description 
)

Definition at line 38 of file ProductUsageValuation.java.

38  {
39  this.productId = productId;
40  this.providerId = providerId;
41  this.providerProductId = providerProductId;
42  this.description = description;
43  this.product = ProductFactory.getProduct(productId, providerId, providerProductId, description);
44  }
Here is the call graph for this function:

Member Function Documentation

◆ getUnitCost()

double org.turro.erp.task.ProductUsageValuation.getUnitCost ( )

Implements org.turro.erp.task.IUsageValuation.

Definition at line 47 of file ProductUsageValuation.java.

47  {
48  double cost = 0.0;
49  if(product != null) {
50  cost = product.getProductCost();
51  }
52  return cost;
53  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUnitPrice()

double org.turro.erp.task.ProductUsageValuation.getUnitPrice ( )

Implements org.turro.erp.task.IUsageValuation.

Definition at line 56 of file ProductUsageValuation.java.

56  {
57  double price = 0.0;
58  if(product != null) {
59  price = product.getProductPrice();
60  }
61  return price;
62  }
Here is the call graph for this function:
Here is the caller graph for this function:

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