PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/src/AppBundle/Entity/Presta/PsSupplyOrder.php

https://gitlab.com/StarsoftDevelopers/migrate
PHP | 593 lines | 191 code | 78 blank | 324 comment | 0 complexity | 1cb3e1991f945f971355407577dc0343 MD5 | raw file
  1. <?php
  2. namespace AppBundle\Entity\Presta;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * PsSupplyOrder
  6. *
  7. * @ORM\Table(name="hd_supply_order", indexes={@ORM\Index(name="id_supplier", columns={"id_supplier"}), @ORM\Index(name="id_warehouse", columns={"id_warehouse"}), @ORM\Index(name="reference", columns={"reference"})})
  8. * @ORM\Entity
  9. */
  10. class PsSupplyOrder
  11. {
  12. /**
  13. * @var integer
  14. *
  15. * @ORM\Column(name="id_supply_order", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $idSupplyOrder;
  20. /**
  21. * @var integer
  22. *
  23. * @ORM\Column(name="id_supplier", type="integer", nullable=false)
  24. */
  25. private $idSupplier;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="supplier_name", type="string", length=64, nullable=false)
  30. */
  31. private $supplierName;
  32. /**
  33. * @var integer
  34. *
  35. * @ORM\Column(name="id_lang", type="integer", nullable=false)
  36. */
  37. private $idLang;
  38. /**
  39. * @var integer
  40. *
  41. * @ORM\Column(name="id_warehouse", type="integer", nullable=false)
  42. */
  43. private $idWarehouse;
  44. /**
  45. * @var integer
  46. *
  47. * @ORM\Column(name="id_supply_order_state", type="integer", nullable=false)
  48. */
  49. private $idSupplyOrderState;
  50. /**
  51. * @var integer
  52. *
  53. * @ORM\Column(name="id_currency", type="integer", nullable=false)
  54. */
  55. private $idCurrency;
  56. /**
  57. * @var integer
  58. *
  59. * @ORM\Column(name="id_ref_currency", type="integer", nullable=false)
  60. */
  61. private $idRefCurrency;
  62. /**
  63. * @var string
  64. *
  65. * @ORM\Column(name="reference", type="string", length=64, nullable=false)
  66. */
  67. private $reference;
  68. /**
  69. * @var \DateTime
  70. *
  71. * @ORM\Column(name="date_add", type="datetime", nullable=false)
  72. */
  73. private $dateAdd;
  74. /**
  75. * @var \DateTime
  76. *
  77. * @ORM\Column(name="date_upd", type="datetime", nullable=false)
  78. */
  79. private $dateUpd;
  80. /**
  81. * @var \DateTime
  82. *
  83. * @ORM\Column(name="date_delivery_expected", type="datetime", nullable=true)
  84. */
  85. private $dateDeliveryExpected;
  86. /**
  87. * @var string
  88. *
  89. * @ORM\Column(name="total_te", type="decimal", precision=20, scale=6, nullable=true)
  90. */
  91. private $totalTe = '0.000000';
  92. /**
  93. * @var string
  94. *
  95. * @ORM\Column(name="total_with_discount_te", type="decimal", precision=20, scale=6, nullable=true)
  96. */
  97. private $totalWithDiscountTe = '0.000000';
  98. /**
  99. * @var string
  100. *
  101. * @ORM\Column(name="total_tax", type="decimal", precision=20, scale=6, nullable=true)
  102. */
  103. private $totalTax = '0.000000';
  104. /**
  105. * @var string
  106. *
  107. * @ORM\Column(name="total_ti", type="decimal", precision=20, scale=6, nullable=true)
  108. */
  109. private $totalTi = '0.000000';
  110. /**
  111. * @var string
  112. *
  113. * @ORM\Column(name="discount_rate", type="decimal", precision=20, scale=6, nullable=true)
  114. */
  115. private $discountRate = '0.000000';
  116. /**
  117. * @var string
  118. *
  119. * @ORM\Column(name="discount_value_te", type="decimal", precision=20, scale=6, nullable=true)
  120. */
  121. private $discountValueTe = '0.000000';
  122. /**
  123. * @var boolean
  124. *
  125. * @ORM\Column(name="is_template", type="boolean", nullable=true)
  126. */
  127. private $isTemplate = '0';
  128. /**
  129. * Get idSupplyOrder
  130. *
  131. * @return integer
  132. */
  133. public function getIdSupplyOrder()
  134. {
  135. return $this->idSupplyOrder;
  136. }
  137. /**
  138. * Set idSupplier
  139. *
  140. * @param integer $idSupplier
  141. *
  142. * @return PsSupplyOrder
  143. */
  144. public function setIdSupplier($idSupplier)
  145. {
  146. $this->idSupplier = $idSupplier;
  147. return $this;
  148. }
  149. /**
  150. * Get idSupplier
  151. *
  152. * @return integer
  153. */
  154. public function getIdSupplier()
  155. {
  156. return $this->idSupplier;
  157. }
  158. /**
  159. * Set supplierName
  160. *
  161. * @param string $supplierName
  162. *
  163. * @return PsSupplyOrder
  164. */
  165. public function setSupplierName($supplierName)
  166. {
  167. $this->supplierName = $supplierName;
  168. return $this;
  169. }
  170. /**
  171. * Get supplierName
  172. *
  173. * @return string
  174. */
  175. public function getSupplierName()
  176. {
  177. return $this->supplierName;
  178. }
  179. /**
  180. * Set idLang
  181. *
  182. * @param integer $idLang
  183. *
  184. * @return PsSupplyOrder
  185. */
  186. public function setIdLang($idLang)
  187. {
  188. $this->idLang = $idLang;
  189. return $this;
  190. }
  191. /**
  192. * Get idLang
  193. *
  194. * @return integer
  195. */
  196. public function getIdLang()
  197. {
  198. return $this->idLang;
  199. }
  200. /**
  201. * Set idWarehouse
  202. *
  203. * @param integer $idWarehouse
  204. *
  205. * @return PsSupplyOrder
  206. */
  207. public function setIdWarehouse($idWarehouse)
  208. {
  209. $this->idWarehouse = $idWarehouse;
  210. return $this;
  211. }
  212. /**
  213. * Get idWarehouse
  214. *
  215. * @return integer
  216. */
  217. public function getIdWarehouse()
  218. {
  219. return $this->idWarehouse;
  220. }
  221. /**
  222. * Set idSupplyOrderState
  223. *
  224. * @param integer $idSupplyOrderState
  225. *
  226. * @return PsSupplyOrder
  227. */
  228. public function setIdSupplyOrderState($idSupplyOrderState)
  229. {
  230. $this->idSupplyOrderState = $idSupplyOrderState;
  231. return $this;
  232. }
  233. /**
  234. * Get idSupplyOrderState
  235. *
  236. * @return integer
  237. */
  238. public function getIdSupplyOrderState()
  239. {
  240. return $this->idSupplyOrderState;
  241. }
  242. /**
  243. * Set idCurrency
  244. *
  245. * @param integer $idCurrency
  246. *
  247. * @return PsSupplyOrder
  248. */
  249. public function setIdCurrency($idCurrency)
  250. {
  251. $this->idCurrency = $idCurrency;
  252. return $this;
  253. }
  254. /**
  255. * Get idCurrency
  256. *
  257. * @return integer
  258. */
  259. public function getIdCurrency()
  260. {
  261. return $this->idCurrency;
  262. }
  263. /**
  264. * Set idRefCurrency
  265. *
  266. * @param integer $idRefCurrency
  267. *
  268. * @return PsSupplyOrder
  269. */
  270. public function setIdRefCurrency($idRefCurrency)
  271. {
  272. $this->idRefCurrency = $idRefCurrency;
  273. return $this;
  274. }
  275. /**
  276. * Get idRefCurrency
  277. *
  278. * @return integer
  279. */
  280. public function getIdRefCurrency()
  281. {
  282. return $this->idRefCurrency;
  283. }
  284. /**
  285. * Set reference
  286. *
  287. * @param string $reference
  288. *
  289. * @return PsSupplyOrder
  290. */
  291. public function setReference($reference)
  292. {
  293. $this->reference = $reference;
  294. return $this;
  295. }
  296. /**
  297. * Get reference
  298. *
  299. * @return string
  300. */
  301. public function getReference()
  302. {
  303. return $this->reference;
  304. }
  305. /**
  306. * Set dateAdd
  307. *
  308. * @param \DateTime $dateAdd
  309. *
  310. * @return PsSupplyOrder
  311. */
  312. public function setDateAdd($dateAdd)
  313. {
  314. $this->dateAdd = $dateAdd;
  315. return $this;
  316. }
  317. /**
  318. * Get dateAdd
  319. *
  320. * @return \DateTime
  321. */
  322. public function getDateAdd()
  323. {
  324. return $this->dateAdd;
  325. }
  326. /**
  327. * Set dateUpd
  328. *
  329. * @param \DateTime $dateUpd
  330. *
  331. * @return PsSupplyOrder
  332. */
  333. public function setDateUpd($dateUpd)
  334. {
  335. $this->dateUpd = $dateUpd;
  336. return $this;
  337. }
  338. /**
  339. * Get dateUpd
  340. *
  341. * @return \DateTime
  342. */
  343. public function getDateUpd()
  344. {
  345. return $this->dateUpd;
  346. }
  347. /**
  348. * Set dateDeliveryExpected
  349. *
  350. * @param \DateTime $dateDeliveryExpected
  351. *
  352. * @return PsSupplyOrder
  353. */
  354. public function setDateDeliveryExpected($dateDeliveryExpected)
  355. {
  356. $this->dateDeliveryExpected = $dateDeliveryExpected;
  357. return $this;
  358. }
  359. /**
  360. * Get dateDeliveryExpected
  361. *
  362. * @return \DateTime
  363. */
  364. public function getDateDeliveryExpected()
  365. {
  366. return $this->dateDeliveryExpected;
  367. }
  368. /**
  369. * Set totalTe
  370. *
  371. * @param string $totalTe
  372. *
  373. * @return PsSupplyOrder
  374. */
  375. public function setTotalTe($totalTe)
  376. {
  377. $this->totalTe = $totalTe;
  378. return $this;
  379. }
  380. /**
  381. * Get totalTe
  382. *
  383. * @return string
  384. */
  385. public function getTotalTe()
  386. {
  387. return $this->totalTe;
  388. }
  389. /**
  390. * Set totalWithDiscountTe
  391. *
  392. * @param string $totalWithDiscountTe
  393. *
  394. * @return PsSupplyOrder
  395. */
  396. public function setTotalWithDiscountTe($totalWithDiscountTe)
  397. {
  398. $this->totalWithDiscountTe = $totalWithDiscountTe;
  399. return $this;
  400. }
  401. /**
  402. * Get totalWithDiscountTe
  403. *
  404. * @return string
  405. */
  406. public function getTotalWithDiscountTe()
  407. {
  408. return $this->totalWithDiscountTe;
  409. }
  410. /**
  411. * Set totalTax
  412. *
  413. * @param string $totalTax
  414. *
  415. * @return PsSupplyOrder
  416. */
  417. public function setTotalTax($totalTax)
  418. {
  419. $this->totalTax = $totalTax;
  420. return $this;
  421. }
  422. /**
  423. * Get totalTax
  424. *
  425. * @return string
  426. */
  427. public function getTotalTax()
  428. {
  429. return $this->totalTax;
  430. }
  431. /**
  432. * Set totalTi
  433. *
  434. * @param string $totalTi
  435. *
  436. * @return PsSupplyOrder
  437. */
  438. public function setTotalTi($totalTi)
  439. {
  440. $this->totalTi = $totalTi;
  441. return $this;
  442. }
  443. /**
  444. * Get totalTi
  445. *
  446. * @return string
  447. */
  448. public function getTotalTi()
  449. {
  450. return $this->totalTi;
  451. }
  452. /**
  453. * Set discountRate
  454. *
  455. * @param string $discountRate
  456. *
  457. * @return PsSupplyOrder
  458. */
  459. public function setDiscountRate($discountRate)
  460. {
  461. $this->discountRate = $discountRate;
  462. return $this;
  463. }
  464. /**
  465. * Get discountRate
  466. *
  467. * @return string
  468. */
  469. public function getDiscountRate()
  470. {
  471. return $this->discountRate;
  472. }
  473. /**
  474. * Set discountValueTe
  475. *
  476. * @param string $discountValueTe
  477. *
  478. * @return PsSupplyOrder
  479. */
  480. public function setDiscountValueTe($discountValueTe)
  481. {
  482. $this->discountValueTe = $discountValueTe;
  483. return $this;
  484. }
  485. /**
  486. * Get discountValueTe
  487. *
  488. * @return string
  489. */
  490. public function getDiscountValueTe()
  491. {
  492. return $this->discountValueTe;
  493. }
  494. /**
  495. * Set isTemplate
  496. *
  497. * @param boolean $isTemplate
  498. *
  499. * @return PsSupplyOrder
  500. */
  501. public function setIsTemplate($isTemplate)
  502. {
  503. $this->isTemplate = $isTemplate;
  504. return $this;
  505. }
  506. /**
  507. * Get isTemplate
  508. *
  509. * @return boolean
  510. */
  511. public function getIsTemplate()
  512. {
  513. return $this->isTemplate;
  514. }
  515. }