◆ SimpleDocumentLine()
org.turro.financials.model.document.SimpleDocumentLine.SimpleDocumentLine |
( |
DocumentLine |
line | ) |
|
Definition at line 45 of file SimpleDocumentLine.java.
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();
54 discountPerCent = line.getDiscountPerCent();
55 discountMoney = line.getDiscountMoney();
56 lineType = line.getLineType();
◆ addToDocument()
void org.turro.financials.model.document.SimpleDocumentLine.addToDocument |
( |
Document |
document | ) |
|
Definition at line 59 of file SimpleDocumentLine.java.
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);
68 dl.setDiscountPerCent(discountPerCent);
69 dl.setDiscountMoney(discountMoney);
72 dl.setLineOrder(count + lineOrder);
73 dl.setLineType(lineType);
74 document.getDocumentLines().add(dl);
The documentation for this class was generated from the following file: