BrightSide Workbench Full Report + Source Code
org.turro.financials.document.DocumentTotal Class Reference
Inheritance diagram for org.turro.financials.document.DocumentTotal:
Collaboration diagram for org.turro.financials.document.DocumentTotal:

Public Member Functions

Document getDocument ()
 
void setDocument (Document document)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 29 of file DocumentTotal.java.

Member Function Documentation

◆ afterCompose()

void org.turro.financials.document.DocumentTotal.afterCompose ( )

Definition at line 49 of file DocumentTotal.java.

49  {
50  setDocument(document);
51  }
Here is the call graph for this function:

◆ getDocument()

Document org.turro.financials.document.DocumentTotal.getDocument ( )

Definition at line 34 of file DocumentTotal.java.

34  {
35  return document;
36  }

◆ setDocument()

void org.turro.financials.document.DocumentTotal.setDocument ( Document  document)

Definition at line 38 of file DocumentTotal.java.

38  {
39  this.document = document;
40  if(document != null && document.getCurrency() != null) {
41  fractionDigits = document.getCurrency().getDefaultFractionDigits();
42  setValue(DecimalFormats.format(document.getTotalAmount(), DecimalFormats.getStringFormat(fractionDigits)));
43  } else {
44  setValue("0");
45  }
46  }
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: