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