src/Entity/Idempiere/MProductprice.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. /**
  4. * @author rbellorin@sumagroups.com
  5. * @version 2026-03-16
  6. */
  7. use App\Repository\Idempiere\MProductpriceRepository;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10. * @ORM\Entity(repositoryClass=MProductpriceRepository::class)
  11. * @ORM\Table(name="m_productprice")
  12. */
  13. class MProductprice
  14. {
  15. /**
  16. * @ORM\Id
  17. * @ORM\Column(type="integer")
  18. */
  19. private $m_productprice_id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=MPricelistVersion::class, inversedBy="m_productprices")
  22. * @ORM\JoinColumn(referencedColumnName="m_pricelist_version_id", nullable=false)
  23. */
  24. private $m_pricelist_version;
  25. /**
  26. * @ORM\Column(type="integer")
  27. */
  28. private $m_pricelist_version_id;
  29. /**
  30. * @ORM\ManyToOne(targetEntity=MProduct::class, inversedBy="m_productprices")
  31. * @ORM\JoinColumn(referencedColumnName="m_product_id", nullable=false)
  32. */
  33. private $m_product;
  34. /**
  35. * @ORM\Column(type="integer")
  36. */
  37. private $m_product_id;
  38. /**
  39. * @ORM\Column(type="datetime")
  40. */
  41. private $created;
  42. /**
  43. * @ORM\Column(type="string", length=1)
  44. */
  45. private $isactive;
  46. /**
  47. * @ORM\Column(type="float")
  48. */
  49. private $pricelist;
  50. /**
  51. * @ORM\Column(type="float")
  52. */
  53. private $pricestd;
  54. /**
  55. * @ORM\Column(type="float")
  56. */
  57. private $pricelimit;
  58. /**
  59. * @ORM\Column(type="integer")
  60. */
  61. private $ad_org_id;
  62. /**
  63. * @ORM\Column(type="integer")
  64. */
  65. private $sm_marca_id;
  66. public function getId(): ?int
  67. {
  68. return $this->getMProductpriceId();
  69. }
  70. public function getMProductpriceId(): ?int
  71. {
  72. return $this->m_productprice_id;
  73. }
  74. public function setMProductpriceId(int $m_productprice_id): self
  75. {
  76. $this->m_productprice_id = $m_productprice_id;
  77. return $this;
  78. }
  79. public function getMPricelistVersion(): ?MPricelistVersion
  80. {
  81. return $this->m_pricelist_version;
  82. }
  83. public function setMPricelistVersion(?MPricelistVersion $m_pricelist_version): self
  84. {
  85. $this->m_pricelist_version = $m_pricelist_version;
  86. return $this;
  87. }
  88. public function getMPricelistVersionId(): ?int
  89. {
  90. return $this->m_pricelist_version_id;
  91. }
  92. public function setMPricelistVersionId(int $m_pricelist_version_id): self
  93. {
  94. $this->m_pricelist_version_id = $m_pricelist_version_id;
  95. return $this;
  96. }
  97. public function getMProduct(): ?MProduct
  98. {
  99. return $this->m_product;
  100. }
  101. public function setMProduct(?MProduct $m_product): self
  102. {
  103. $this->m_product = $m_product;
  104. return $this;
  105. }
  106. public function getMProductId(): ?int
  107. {
  108. return $this->m_product_id;
  109. }
  110. public function setMProductId(int $m_product_id): self
  111. {
  112. $this->m_product_id = $m_product_id;
  113. return $this;
  114. }
  115. public function getCreated(): ?\DateTimeInterface
  116. {
  117. return $this->created;
  118. }
  119. public function setCreated(\DateTimeInterface $created): self
  120. {
  121. $this->created = $created;
  122. return $this;
  123. }
  124. public function getIsactive(): ?string
  125. {
  126. return $this->isactive;
  127. }
  128. public function setIsactive(string $isactive): self
  129. {
  130. $this->isactive = $isactive;
  131. return $this;
  132. }
  133. public function getPricelist(): ?float
  134. {
  135. return $this->pricelist;
  136. }
  137. public function setPricelist(float $pricelist): self
  138. {
  139. $this->pricelist = $pricelist;
  140. return $this;
  141. }
  142. public function getPricestd(): ?float
  143. {
  144. return $this->pricestd;
  145. }
  146. public function setPricestd(float $pricestd): self
  147. {
  148. $this->pricestd = $pricestd;
  149. return $this;
  150. }
  151. public function getPricelimit(): ?float
  152. {
  153. return $this->pricelimit;
  154. }
  155. public function setPricelimit(float $pricelimit): self
  156. {
  157. $this->pricelimit = $pricelimit;
  158. return $this;
  159. }
  160. public function getAdOrgId(): ?int
  161. {
  162. return $this->ad_org_id;
  163. }
  164. public function setAdOrgId(int $ad_org_id): self
  165. {
  166. $this->ad_org_id = $ad_org_id;
  167. return $this;
  168. }
  169. public function getSmMarcaId(): ?int
  170. {
  171. return $this->sm_marca_id;
  172. }
  173. public function setSmMarcaId(int $sm_marca_id): self
  174. {
  175. $this->sm_marca_id = $sm_marca_id;
  176. return $this;
  177. }
  178. }