BrightSide Workbench Full Report + Source Code
org.turro.financials.cart.www.FinancialsCart Class Reference

Public Member Functions

 FinancialsCart (Cart cart, Dao dao, boolean paid)
 
Document generate ()
 
String getDocDescription (Document doc)
 

Detailed Description

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

Definition at line 54 of file FinancialsCart.java.

Constructor & Destructor Documentation

◆ FinancialsCart()

org.turro.financials.cart.www.FinancialsCart.FinancialsCart ( Cart  cart,
Dao  dao,
boolean  paid 
)

Definition at line 70 of file FinancialsCart.java.

70  {
71  this.cart = cart;
72  this.dao = dao;
73  this.paid = paid;
74  }

Member Function Documentation

◆ generate()

Document org.turro.financials.cart.www.FinancialsCart.generate ( )

Definition at line 76 of file FinancialsCart.java.

76  {
77  Contract contract = getContract();
78  if(contract == null) {
79  contract = createContract();
80  }
81  return createDocument(contract);
82  }

◆ getDocDescription()

String org.turro.financials.cart.www.FinancialsCart.getDocDescription ( Document  doc)

Definition at line 194 of file FinancialsCart.java.

194  {
195  return doc.getDocumentDefinition().getName() + ": " +
196  (doc.getForcedView() == null ? "" : "(" + doc.getForcedView().getName() + ") ") +
197  doc.getDocumentNumber() + " " +
198  DateFormats.format(doc.getDocumentDate(), true);
199  }
Here is the call graph for this function:

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