BrightSide Workbench Full Report + Source Code
org.turro.financials.treasury.m111.EntryContract Class Reference

Public Member Functions

 EntryContract (long contractId, String contractName)
 
long getContractId ()
 
String getContractName ()
 
Map< Long, Double > getDocuments ()
 
double getRetention ()
 
double getTaxable ()
 
void addDocument (long documentId, double retention, double taxable)
 

Detailed Description

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

Definition at line 27 of file EntryContract.java.

Constructor & Destructor Documentation

◆ EntryContract()

org.turro.financials.treasury.m111.EntryContract.EntryContract ( long  contractId,
String  contractName 
)

Definition at line 34 of file EntryContract.java.

34  {
35  this.contractId = contractId;
36  this.contractName = contractName;
37  }

Member Function Documentation

◆ addDocument()

void org.turro.financials.treasury.m111.EntryContract.addDocument ( long  documentId,
double  retention,
double  taxable 
)

Definition at line 63 of file EntryContract.java.

63  {
64  Double d = documents.get(documentId);
65  if(d != null) {
66  documents.put(documentId, d + retention);
67  } else {
68  documents.put(documentId, retention);
69  }
70  this.taxable += taxable;
71  }
Here is the caller graph for this function:

◆ getContractId()

long org.turro.financials.treasury.m111.EntryContract.getContractId ( )

Definition at line 39 of file EntryContract.java.

39  {
40  return contractId;
41  }

◆ getContractName()

String org.turro.financials.treasury.m111.EntryContract.getContractName ( )

Definition at line 43 of file EntryContract.java.

43  {
44  return contractName;
45  }

◆ getDocuments()

Map<Long, Double> org.turro.financials.treasury.m111.EntryContract.getDocuments ( )

Definition at line 47 of file EntryContract.java.

47  {
48  return documents;
49  }

◆ getRetention()

double org.turro.financials.treasury.m111.EntryContract.getRetention ( )

Definition at line 51 of file EntryContract.java.

51  {
52  double total = 0.0;
53  for(Double d : documents.values()) {
54  total += d;
55  }
56  return total;
57  }

◆ getTaxable()

double org.turro.financials.treasury.m111.EntryContract.getTaxable ( )

Definition at line 59 of file EntryContract.java.

59  {
60  return taxable;
61  }

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