BrightSide Workbench Full Report + Source Code
org.turro.erp.task.UsageValuation Class Reference

Public Member Functions

 UsageValuation (RequiredUsage requiredUsage)
 
void recalculateCost ()
 
void recalculatePrice ()
 
double getUnitCost ()
 
double getUnitPrice ()
 

Detailed Description

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

Definition at line 27 of file UsageValuation.java.

Constructor & Destructor Documentation

◆ UsageValuation()

org.turro.erp.task.UsageValuation.UsageValuation ( RequiredUsage  requiredUsage)

Definition at line 32 of file UsageValuation.java.

32  {
33  this.requiredUsage = requiredUsage;
34  if(requiredUsage.isHumanResourceType()) {
35  valuation = new ResourceUsageValuation(
36  requiredUsage.getHumanResource(), requiredUsage.getResource(),
37  requiredUsage.getAptitudeDegree(), requiredUsage.getAptitudeAssesment(),
38  requiredUsage.getDedication());
39  } else {
40  valuation = new ProductUsageValuation(
41  requiredUsage.getProductId(), requiredUsage.getProviderId(),
42  requiredUsage.getProviderProductId(), requiredUsage.getDescription());
43  }
44  }
Here is the call graph for this function:

Member Function Documentation

◆ getUnitCost()

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

Definition at line 54 of file UsageValuation.java.

54  {
55  return valuation.getUnitCost();
56  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUnitPrice()

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

Definition at line 58 of file UsageValuation.java.

58  {
59  return valuation.getUnitPrice();
60  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ recalculateCost()

void org.turro.erp.task.UsageValuation.recalculateCost ( )

Definition at line 46 of file UsageValuation.java.

46  {
47  requiredUsage.setCost(valuation.getUnitCost());
48  }
Here is the call graph for this function:

◆ recalculatePrice()

void org.turro.erp.task.UsageValuation.recalculatePrice ( )

Definition at line 50 of file UsageValuation.java.

50  {
51  requiredUsage.setPrice(valuation.getUnitPrice());
52  }
Here is the call graph for this function:

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