1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialInvoiceItem
9: *
10: * @Table(name="COMMERCIAL_INVOICE_ITEM")
11: * @Entity
12: */
13: class CommercialInvoiceItem
14: {
15: /**
16: * @var boolean $isGroup
17: *
18: * @Column(name="is_group", type="boolean")
19: */
20: private $isGroup;
21:
22: /**
23: * @var string $itemLabel
24: *
25: * @Column(name="item_label", type="string", length=500)
26: */
27: private $itemLabel;
28:
29: /**
30: * @var string $itemRef
31: *
32: * @Column(name="item_ref", type="string", length=10)
33: */
34: private $itemRef;
35:
36: /**
37: * @var decimal $purchasingDfUnitPrice
38: *
39: * @Column(name="purchasing_DF_unit_price", type="decimal")
40: */
41: private $purchasingDfUnitPrice;
42:
43: /**
44: * @var decimal $taxRate
45: *
46: * @Column(name="tax_rate", type="decimal")
47: */
48: private $taxRate;
49:
50: /**
51: * @var decimal $amountTax
52: *
53: * @Column(name="amount_tax", type="decimal")
54: */
55: private $amountTax;
56:
57: /**
58: * @var decimal $quantityArticle
59: *
60: * @Column(name="quantity_article", type="decimal")
61: */
62: private $quantityArticle;
63:
64: /**
65: * @var decimal $totSellPriceArticleDf
66: *
67: * @Column(name="tot_sell_price_article_DF", type="decimal")
68: */
69: private $totSellPriceArticleDf;
70:
71: /**
72: * @var decimal $totSellPriceArticleTi
73: *
74: * @Column(name="tot_sell_price_article_TI", type="decimal")
75: */
76: private $totSellPriceArticleTi;
77:
78: /**
79: * @var text $comment
80: *
81: * @Column(name="comment", type="text")
82: */
83: private $comment;
84:
85: /**
86: * @var string $accountingLabel
87: *
88: * @Column(name="accounting_label", type="string", length=20)
89: */
90: private $accountingLabel;
91:
92: /**
93: * @var string $accountingNumber
94: *
95: * @Column(name="accounting_number", type="string", length=12)
96: */
97: private $accountingNumber;
98:
99: /**
100: * @var integer $id
101: *
102: * @Column(name="id", type="integer")
103: * @Id
104: * @GeneratedValue(strategy="IDENTITY")
105: */
106: private $id;
107:
108: /**
109: * @var CommercialInvoice
110: *
111: * @ManyToOne(targetEntity="CommercialInvoice")
112: * @JoinColumns({
113: * @JoinColumn(name="invoice_id", referencedColumnName="id")
114: * })
115: */
116: private $invoice;
117:
118: /**
119: * @var CommercialInvoiceItem
120: *
121: * @ManyToOne(targetEntity="CommercialInvoiceItem")
122: * @JoinColumns({
123: * @JoinColumn(name="parent_id", referencedColumnName="id")
124: * })
125: */
126: private $parent;
127:
128:
129: /**
130: * Set isGroup
131: *
132: * @param boolean $isGroup
133: * @return CommercialInvoiceItem
134: */
135: public function setIsGroup($isGroup)
136: {
137: $this->isGroup = $isGroup;
138: return $this;
139: }
140:
141: /**
142: * Get isGroup
143: *
144: * @return boolean
145: */
146: public function getIsGroup()
147: {
148: return $this->isGroup;
149: }
150:
151: /**
152: * Set itemLabel
153: *
154: * @param string $itemLabel
155: * @return CommercialInvoiceItem
156: */
157: public function setItemLabel($itemLabel)
158: {
159: $this->itemLabel = $itemLabel;
160: return $this;
161: }
162:
163: /**
164: * Get itemLabel
165: *
166: * @return string
167: */
168: public function getItemLabel()
169: {
170: return $this->itemLabel;
171: }
172:
173: /**
174: * Set itemRef
175: *
176: * @param string $itemRef
177: * @return CommercialInvoiceItem
178: */
179: public function setItemRef($itemRef)
180: {
181: $this->itemRef = $itemRef;
182: return $this;
183: }
184:
185: /**
186: * Get itemRef
187: *
188: * @return string
189: */
190: public function getItemRef()
191: {
192: return $this->itemRef;
193: }
194:
195: /**
196: * Set purchasingDfUnitPrice
197: *
198: * @param decimal $purchasingDfUnitPrice
199: * @return CommercialInvoiceItem
200: */
201: public function setPurchasingDfUnitPrice($purchasingDfUnitPrice)
202: {
203: $this->purchasingDfUnitPrice = $purchasingDfUnitPrice;
204: return $this;
205: }
206:
207: /**
208: * Get purchasingDfUnitPrice
209: *
210: * @return decimal
211: */
212: public function getPurchasingDfUnitPrice()
213: {
214: return $this->purchasingDfUnitPrice;
215: }
216:
217: /**
218: * Set taxRate
219: *
220: * @param decimal $taxRate
221: * @return CommercialInvoiceItem
222: */
223: public function setTaxRate($taxRate)
224: {
225: $this->taxRate = $taxRate;
226: return $this;
227: }
228:
229: /**
230: * Get taxRate
231: *
232: * @return decimal
233: */
234: public function getTaxRate()
235: {
236: return $this->taxRate;
237: }
238:
239: /**
240: * Set amountTax
241: *
242: * @param decimal $amountTax
243: * @return CommercialInvoiceItem
244: */
245: public function setAmountTax($amountTax)
246: {
247: $this->amountTax = $amountTax;
248: return $this;
249: }
250:
251: /**
252: * Get amountTax
253: *
254: * @return decimal
255: */
256: public function getAmountTax()
257: {
258: return $this->amountTax;
259: }
260:
261: /**
262: * Set quantityArticle
263: *
264: * @param decimal $quantityArticle
265: * @return CommercialInvoiceItem
266: */
267: public function setQuantityArticle($quantityArticle)
268: {
269: $this->quantityArticle = $quantityArticle;
270: return $this;
271: }
272:
273: /**
274: * Get quantityArticle
275: *
276: * @return decimal
277: */
278: public function getQuantityArticle()
279: {
280: return $this->quantityArticle;
281: }
282:
283: /**
284: * Set totSellPriceArticleDf
285: *
286: * @param decimal $totSellPriceArticleDf
287: * @return CommercialInvoiceItem
288: */
289: public function setTotSellPriceArticleDf($totSellPriceArticleDf)
290: {
291: $this->totSellPriceArticleDf = $totSellPriceArticleDf;
292: return $this;
293: }
294:
295: /**
296: * Get totSellPriceArticleDf
297: *
298: * @return decimal
299: */
300: public function getTotSellPriceArticleDf()
301: {
302: return $this->totSellPriceArticleDf;
303: }
304:
305: /**
306: * Set totSellPriceArticleTi
307: *
308: * @param decimal $totSellPriceArticleTi
309: * @return CommercialInvoiceItem
310: */
311: public function setTotSellPriceArticleTi($totSellPriceArticleTi)
312: {
313: $this->totSellPriceArticleTi = $totSellPriceArticleTi;
314: return $this;
315: }
316:
317: /**
318: * Get totSellPriceArticleTi
319: *
320: * @return decimal
321: */
322: public function getTotSellPriceArticleTi()
323: {
324: return $this->totSellPriceArticleTi;
325: }
326:
327: /**
328: * Set comment
329: *
330: * @param text $comment
331: * @return CommercialInvoiceItem
332: */
333: public function setComment($comment)
334: {
335: $this->comment = $comment;
336: return $this;
337: }
338:
339: /**
340: * Get comment
341: *
342: * @return text
343: */
344: public function getComment()
345: {
346: return $this->comment;
347: }
348:
349: /**
350: * Set accountingLabel
351: *
352: * @param string $accountingLabel
353: * @return CommercialInvoiceItem
354: */
355: public function setAccountingLabel($accountingLabel)
356: {
357: $this->accountingLabel = $accountingLabel;
358: return $this;
359: }
360:
361: /**
362: * Get accountingLabel
363: *
364: * @return string
365: */
366: public function getAccountingLabel()
367: {
368: return $this->accountingLabel;
369: }
370:
371: /**
372: * Set accountingNumber
373: *
374: * @param string $accountingNumber
375: * @return CommercialInvoiceItem
376: */
377: public function setAccountingNumber($accountingNumber)
378: {
379: $this->accountingNumber = $accountingNumber;
380: return $this;
381: }
382:
383: /**
384: * Get accountingNumber
385: *
386: * @return string
387: */
388: public function getAccountingNumber()
389: {
390: return $this->accountingNumber;
391: }
392:
393: /**
394: * Get id
395: *
396: * @return integer
397: */
398: public function getId()
399: {
400: return $this->id;
401: }
402:
403: /**
404: * Set invoice
405: *
406: * @param CommercialInvoice $invoice
407: * @return CommercialInvoiceItem
408: */
409: public function setInvoice(\CommercialInvoice $invoice = null)
410: {
411: $this->invoice = $invoice;
412: return $this;
413: }
414:
415: /**
416: * Get invoice
417: *
418: * @return CommercialInvoice
419: */
420: public function getInvoice()
421: {
422: return $this->invoice;
423: }
424:
425: /**
426: * Set parent
427: *
428: * @param CommercialInvoiceItem $parent
429: * @return CommercialInvoiceItem
430: */
431: public function setParent(\CommercialInvoiceItem $parent = null)
432: {
433: $this->parent = $parent;
434: return $this;
435: }
436:
437: /**
438: * Get parent
439: *
440: * @return CommercialInvoiceItem
441: */
442: public function getParent()
443: {
444: return $this->parent;
445: }
446: }