BrightSide Workbench Full Report + Source Code
org.turro.financials.model.document.SimpleDocumentLine Class Reference

Public Member Functions

 SimpleDocumentLine (DocumentLine line)
 
void addToDocument (Document document)
 

Detailed Description

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

Definition at line 31 of file SimpleDocumentLine.java.

Constructor & Destructor Documentation

◆ SimpleDocumentLine()

org.turro.financials.model.document.SimpleDocumentLine.SimpleDocumentLine ( DocumentLine  line)

Definition at line 45 of file SimpleDocumentLine.java.

45  {
46  store = line.getStore();
47  lineOrder = line.getLineOrder();
48  product = line.getProduct();
49  productByContractor = line.getProductByContractor();
50  concept = line.getConcept();
51  quantity = line.getQuantity();
52  price = line.getPrice();
53  tax = line.getTax();
54  discountPerCent = line.getDiscountPerCent();
55  discountMoney = line.getDiscountMoney();
56  lineType = line.getLineType();
57  }
Here is the call graph for this function:

Member Function Documentation

◆ addToDocument()

void org.turro.financials.model.document.SimpleDocumentLine.addToDocument ( Document  document)

Definition at line 59 of file SimpleDocumentLine.java.

59  {
60  int count = document.getMaxLineOrder() + 1;
61  DocumentLine dl = new DocumentLine();
62  dl.setDocument(document);
63  dl.setProduct(product);
64  dl.setProductByContractor(productByContractor);
65  dl.setConcept(concept);
66  dl.setQuantity(quantity);
67  dl.setPrice(price);
68  dl.setDiscountPerCent(discountPerCent);
69  dl.setDiscountMoney(discountMoney);
70  dl.setTax(tax);
71  dl.setStore(store);
72  dl.setLineOrder(count + lineOrder);
73  dl.setLineType(lineType);
74  document.getDocumentLines().add(dl);
75  }
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: