src/Entity/Boleta.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BoletaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassBoletaRepository::class)]
  8. class Boleta
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $nombreEmpresa;
  16.     #[ORM\Column(type'string'length20nullabletrue)]
  17.     private $cuit;
  18.     #[ORM\Column(type'datetime'nullabletrue)]
  19.     private $fechaPago;
  20.     #[ORM\Column(type'datetime'nullabletrue)]
  21.     private $fechaVencimiento;
  22.     #[ORM\Column(type'integer'nullabletrue)]
  23.     private $cantidadEmpleados;
  24.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  25.     private $cuotaSindical;
  26.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  27.     private $seguroSepelio;
  28.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  29.     private $fondoConvencional;
  30.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  31.     private $remuneracionTotal;
  32.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  33.     private $aporte;
  34.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  35.     private $punitorios;
  36.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  37.     private $totalDepositado;
  38.     
  39.     #[ORM\Column(type'string'length255nullabletrue)]
  40.     private $numerosALetras;
  41.     #[ORM\Column(type'string'length255nullabletrue)]
  42.     private $codigoBarras;
  43.     #[ORM\Column(type'datetime'nullabletrue)]
  44.     private $fechaEmision;
  45.     #[ORM\Column(type'boolean'nullabletrue)]
  46.     private $pagoManual;
  47.     #[ORM\Column(type'datetime'nullabletrue)]
  48.     private $fechaPagoManual;
  49.     #[ORM\Column(type'datetime'nullabletrue)]
  50.     private $fechaPeriodo;
  51.     #[ORM\Column(type'datetime'nullabletrue)]
  52.     private $fechaPeriodoHasta;
  53.     #[ORM\Column(type'decimal'precision10scale'2'nullabletrue)]
  54.     private $aguinaldos;
  55.     #[ORM\ManyToOne(targetEntityEmpresa::class, inversedBy'boletas')]
  56.     private $empresa;
  57.     #[ORM\ManyToOne(targetEntityConcepto::class, inversedBy'boleta')]
  58.     private $concepto;
  59.     #[ORM\OneToOne(mappedBy'boleta'targetEntityAcuerdoConceptoPeriodo::class)]
  60.     private $acuerdoConcepto;
  61.     #[ORM\Column(type'boolean')]
  62.     private $isActive;
  63.     #[ORM\Column(type'boolean'nullabletrue)]
  64.     private $vencida;
  65.     #[ORM\Column(type'boolean'nullabletrue)]
  66.     private $pagada;
  67.     #[ORM\Column(type'text'nullabletrue)]
  68.     private $error;
  69.     #[ORM\ManyToOne(targetEntityAdmin::class, inversedBy'boleta')]
  70.     private $adminPagoManual;
  71.     #[ORM\Column(type'boolean'nullabletrue)]
  72.     private $entregoPagoManual;
  73.     #[ORM\Column(type'datetime'nullabletrue)]
  74.     private $fechaEntregoPagoManual;
  75.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'boletas')]
  76.     private $userCargo;
  77.     #[ORM\OneToMany(mappedBy'boleta'targetEntityMedioConceptoEmpresa::class)]
  78.     private $medioConceptoEmpresas;
  79.     #[ORM\OneToMany(mappedBy'boleta'targetEntityEmpleadoBoleta::class)]
  80.     private $empleadoBoletas;
  81.     #[ORM\ManyToOne(targetEntityAcuerdoDePago::class, inversedBy'boleta')]
  82.     private $acuerdoDePago;
  83.     
  84.     #[ORM\ManyToOne(targetEntityPagosAcuerdo::class, inversedBy'boleta')]
  85.     private $pagoAcuerdo;
  86.     #[ORM\OneToMany(mappedBy'boleta'targetEntityInformarPago::class)]
  87.     private $informarPagos;
  88.     #[ORM\OneToMany(mappedBy'boletas'targetEntityEmpleadoBoleta::class)]
  89.     private $empleadoBoletaChecked;
  90.     #[ORM\Column(type'datetime'nullabletrue)]
  91.     private $fechaIngresoPago;
  92.     #[ORM\OneToMany(mappedBy'boleta'targetEntityPagosBanco::class)]
  93.     private Collection $pagosBancos;
  94.     public function __construct()
  95.     {
  96.         $this->medioConceptoEmpresas = new ArrayCollection();
  97.         $this->empleadoBoletas = new ArrayCollection();
  98.         $this->empleadoBoletaChecked = new ArrayCollection();
  99.         $this->informarPagos = new ArrayCollection();
  100.         $this->pagosBancos = new ArrayCollection();
  101.     }
  102.     public function getId(): ?int
  103.     {
  104.         return $this->id;
  105.     }
  106.     public function getNombreEmpresa(): ?string
  107.     {
  108.         return $this->nombreEmpresa;
  109.     }
  110.     public function setNombreEmpresa(?string $nombreEmpresa): self
  111.     {
  112.         $this->nombreEmpresa $nombreEmpresa;
  113.         return $this;
  114.     }
  115.     public function getCuit(): ?string
  116.     {
  117.         return $this->cuit;
  118.     }
  119.     public function setCuit(?string $cuit): self
  120.     {
  121.         $this->cuit $cuit;
  122.         return $this;
  123.     }
  124.     public function getFechaPago(): ?\DateTimeInterface
  125.     {
  126.         return $this->fechaPago;
  127.     }
  128.     public function setFechaPago(?\DateTimeInterface $fechaPago): self
  129.     {
  130.         $this->fechaPago $fechaPago;
  131.         return $this;
  132.     }
  133.     public function getFechaVencimiento(): ?\DateTimeInterface
  134.     {
  135.         return $this->fechaVencimiento;
  136.     }
  137.     public function setFechaVencimiento(?\DateTimeInterface $fechaVencimiento): self
  138.     {
  139.         $this->fechaVencimiento $fechaVencimiento;
  140.         return $this;
  141.     }
  142.     public function getCantidadEmpleados(): ?int
  143.     {
  144.         return $this->cantidadEmpleados;
  145.     }
  146.     public function setCantidadEmpleados(?int $cantidadEmpleados): self
  147.     {
  148.         $this->cantidadEmpleados $cantidadEmpleados;
  149.         return $this;
  150.     }
  151.     public function getRemuneracionTotal(): ?float
  152.     {
  153.         return $this->remuneracionTotal;
  154.     }
  155.     public function setRemuneracionTotal(?float $remuneracionTotal): self
  156.     {
  157.         $this->remuneracionTotal $remuneracionTotal;
  158.         return $this;
  159.     }
  160.     public function getAporte(): ?string
  161.     {
  162.         return $this->aporte;
  163.     }
  164.     public function setAporte(?string $aporte): self
  165.     {
  166.         $this->aporte $aporte;
  167.         return $this;
  168.     }
  169.     public function getPunitorios(): ?string
  170.     {
  171.         return $this->punitorios;
  172.     }
  173.     public function setPunitorios(?string $punitorios): self
  174.     {
  175.         $this->punitorios $punitorios;
  176.         return $this;
  177.     }
  178.     public function getTotalDepositado(): ?string
  179.     {
  180.         return $this->totalDepositado;
  181.     }
  182.     public function setTotalDepositado(?string $totalDepositado): self
  183.     {
  184.         $this->totalDepositado $totalDepositado;
  185.         return $this;
  186.     }
  187.     public function getCodigoBarras(): ?string
  188.     {
  189.         return $this->codigoBarras;
  190.     }
  191.     public function setCodigoBarras(?string $codigoBarras): self
  192.     {
  193.         $this->codigoBarras $codigoBarras;
  194.         return $this;
  195.     }
  196.     public function getFechaEmision(): ?\DateTimeInterface
  197.     {
  198.         return $this->fechaEmision;
  199.     }
  200.     public function setFechaEmision(?\DateTimeInterface $fechaEmision): self
  201.     {
  202.         $this->fechaEmision $fechaEmision;
  203.         return $this;
  204.     }
  205.     public function getPagoManual(): ?bool
  206.     {
  207.         return $this->pagoManual;
  208.     }
  209.     public function setPagoManual(?bool $pagoManual): self
  210.     {
  211.         $this->pagoManual $pagoManual;
  212.         return $this;
  213.     }
  214.     public function getFechaPagoManual(): ?\DateTimeInterface
  215.     {
  216.         return $this->fechaPagoManual;
  217.     }
  218.     public function setFechaPagoManual(?\DateTimeInterface $fechaPagoManual): self
  219.     {
  220.         $this->fechaPagoManual $fechaPagoManual;
  221.         return $this;
  222.     }
  223.     public function getFechaPeriodo(): ?\DateTimeInterface
  224.     {
  225.         return $this->fechaPeriodo;
  226.     }
  227.     public function setFechaPeriodo(?\DateTimeInterface $fechaPeriodo): self
  228.     {
  229.         $this->fechaPeriodo $fechaPeriodo;
  230.         return $this;
  231.     }
  232.     public function getFechaPeriodoHasta(): ?\DateTimeInterface
  233.     {
  234.         return $this->fechaPeriodoHasta;
  235.     }
  236.     public function setFechaPeriodoHasta(?\DateTimeInterface $fechaPeriodoHasta): self
  237.     {
  238.         $this->fechaPeriodoHasta $fechaPeriodoHasta;
  239.         return $this;
  240.     }
  241.     public function getAguinaldos(): ?string
  242.     {
  243.         return $this->aguinaldos;
  244.     }
  245.     public function setAguinaldos(?string $aguinaldos): self
  246.     {
  247.         $this->aguinaldos $aguinaldos;
  248.         return $this;
  249.     }
  250.     public function getEmpresa(): ?Empresa
  251.     {
  252.         return $this->empresa;
  253.     }
  254.     public function setEmpresa(?Empresa $empresa): self
  255.     {
  256.         $this->empresa $empresa;
  257.         return $this;
  258.     }
  259.     public function getConcepto(): ?Concepto
  260.     {
  261.         return $this->concepto;
  262.     }
  263.     public function setConcepto(?Concepto $concepto): self
  264.     {
  265.         $this->concepto $concepto;
  266.         return $this;
  267.     }
  268.     public function getIsActive(): ?bool
  269.     {
  270.         return $this->isActive;
  271.     }
  272.     public function setIsActive(bool $isActive): self
  273.     {
  274.         $this->isActive $isActive;
  275.         return $this;
  276.     }
  277.     public function getVencida(): ?bool
  278.     {
  279.         return $this->vencida;
  280.     }
  281.     public function setVencida(?bool $vencida): self
  282.     {
  283.         $this->vencida $vencida;
  284.         return $this;
  285.     }
  286.     public function getPagada(): ?bool
  287.     {
  288.         return $this->pagada;
  289.     }
  290.     public function setPagada(?bool $pagada): self
  291.     {
  292.         $this->pagada $pagada;
  293.         return $this;
  294.     }
  295.     public function getError(): ?string
  296.     {
  297.         return $this->error;
  298.     }
  299.     public function setError(?string $error): self
  300.     {
  301.         $this->error $error;
  302.         return $this;
  303.     }
  304.     public function getAdminPagoManual(): ?Admin
  305.     {
  306.         return $this->adminPagoManual;
  307.     }
  308.     public function setAdminPagoManual(?Admin $adminPagoManual): self
  309.     {
  310.         $this->adminPagoManual $adminPagoManual;
  311.         return $this;
  312.     }
  313.     public function getEntregoPagoManual(): ?bool
  314.     {
  315.         return $this->entregoPagoManual;
  316.     }
  317.     public function setEntregoPagoManual(?bool $entregoPagoManual): self
  318.     {
  319.         $this->entregoPagoManual $entregoPagoManual;
  320.         return $this;
  321.     }
  322.     public function getFechaEntregoPagoManual(): ?\DateTimeInterface
  323.     {
  324.         return $this->fechaEntregoPagoManual;
  325.     }
  326.     public function setFechaEntregoPagoManual(?\DateTimeInterface $fechaEntregoPagoManual): self
  327.     {
  328.         $this->fechaEntregoPagoManual $fechaEntregoPagoManual;
  329.         return $this;
  330.     }
  331.     public function getUserCargo(): ?User
  332.     {
  333.         return $this->userCargo;
  334.     }
  335.     public function setUserCargo(?User $userCargo): self
  336.     {
  337.         $this->userCargo $userCargo;
  338.         return $this;
  339.     }
  340.     /**
  341.      * @return Collection<int, MedioConceptoEmpresa>
  342.      */
  343.     public function getMedioConceptoEmpresas(): Collection
  344.     {
  345.         return $this->medioConceptoEmpresas;
  346.     }
  347.     public function addMedioConceptoEmpresa(MedioConceptoEmpresa $medioConceptoEmpresa): self
  348.     {
  349.         if (!$this->medioConceptoEmpresas->contains($medioConceptoEmpresa)) {
  350.             $this->medioConceptoEmpresas[] = $medioConceptoEmpresa;
  351.             $medioConceptoEmpresa->setBoleta($this);
  352.         }
  353.         return $this;
  354.     }
  355.     public function removeMedioConceptoEmpresa(MedioConceptoEmpresa $medioConceptoEmpresa): self
  356.     {
  357.         if ($this->medioConceptoEmpresas->removeElement($medioConceptoEmpresa)) {
  358.             // set the owning side to null (unless already changed)
  359.             if ($medioConceptoEmpresa->getBoleta() === $this) {
  360.                 $medioConceptoEmpresa->setBoleta(null);
  361.             }
  362.         }
  363.         return $this;
  364.     }
  365.     /**
  366.      * @return Collection<int, EmpleadoBoleta>
  367.      */
  368.     public function getEmpleadoBoletas(): Collection
  369.     {
  370.         return $this->empleadoBoletas;
  371.     }
  372.     public function addEmpleadoBoleta(EmpleadoBoleta $empleadoBoleta): self
  373.     {
  374.         if (!$this->empleadoBoletas->contains($empleadoBoleta)) {
  375.             $this->empleadoBoletas[] = $empleadoBoleta;
  376.             $empleadoBoleta->setBoleta($this);
  377.         }
  378.         return $this;
  379.     }
  380.     public function removeEmpleadoBoleta(EmpleadoBoleta $empleadoBoleta): self
  381.     {
  382.         if ($this->empleadoBoletas->removeElement($empleadoBoleta)) {
  383.             // set the owning side to null (unless already changed)
  384.             if ($empleadoBoleta->getBoleta() === $this) {
  385.                 $empleadoBoleta->setBoleta(null);
  386.             }
  387.         }
  388.         return $this;
  389.     }
  390.     
  391.     public function getAcuerdoDePago(): ?AcuerdoDePago
  392.     {
  393.         return $this->acuerdoDePago;
  394.     }
  395.     public function setAcuerdoDePago(?AcuerdoDePago $acuerdoDePago): self
  396.     {
  397.         $this->acuerdoDePago $acuerdoDePago;
  398.         return $this;
  399.     }
  400.     /**
  401.      * Get the value of numerosALetras
  402.      */ 
  403.     public function getNumerosALetras()
  404.     {
  405.         return $this->numerosALetras;
  406.     }
  407.     /**
  408.      * Set the value of numerosALetras
  409.      *
  410.      * @return  self
  411.      */ 
  412.     public function setNumerosALetras($numerosALetras)
  413.     {
  414.         $this->numerosALetras $numerosALetras;
  415.         return $this;
  416.     }
  417.     /**
  418.      * @return Collection<int, InformarPago>
  419.      */
  420.     public function getInformarPagos(): Collection
  421.     {
  422.         return $this->informarPagos;
  423.     }
  424.     public function addInformarPago(InformarPago $informarPago): self
  425.     {
  426.         if (!$this->informarPagos->contains($informarPago)) {
  427.             $this->informarPagos[] = $informarPago;
  428.             $informarPago->setBoleta($this);
  429.         }
  430.         return $this;
  431.     }
  432.     public function removeInformarPago(InformarPago $informarPago): self
  433.     {
  434.         if ($this->informarPagos->removeElement($informarPago)) {
  435.             // set the owning side to null (unless already changed)
  436.             if ($informarPago->getBoleta() === $this) {
  437.                 $informarPago->setBoleta(null);
  438.             }
  439.         }
  440.         return $this;
  441.     }
  442.     /**
  443.      * @return Collection<int, EmpleadoBoleta>
  444.      */
  445.     public function getEmpleadoBoletaChecked(): Collection
  446.     {
  447.         return $this->empleadoBoletaChecked;
  448.     }
  449.     public function addEmpleadoBoletaChecked(EmpleadoBoleta $empleadoBoletaChecked): self
  450.     {
  451.         if (!$this->empleadoBoletaChecked->contains($empleadoBoletaChecked)) {
  452.             $this->empleadoBoletaChecked[] = $empleadoBoletaChecked;
  453.             $empleadoBoletaChecked->setBoletas($this);
  454.         }
  455.         return $this;
  456.     }
  457.     public function removeEmpleadoBoletaChecked(EmpleadoBoleta $empleadoBoletaChecked): self
  458.     {
  459.         if ($this->empleadoBoletaChecked->removeElement($empleadoBoletaChecked)) {
  460.             // set the owning side to null (unless already changed)
  461.             if ($empleadoBoletaChecked->getBoletas() === $this) {
  462.                 $empleadoBoletaChecked->setBoletas(null);
  463.             }
  464.         }
  465.         return $this;
  466.     }
  467.     public function getAcuerdoConcepto(): ?AcuerdoConceptoPeriodo
  468.     {
  469.         return $this->acuerdoConcepto;
  470.     }
  471.     public function setAcuerdoConcepto(?AcuerdoConceptoPeriodo $acuerdoConcepto): self
  472.     {
  473.         $this->acuerdoConcepto $acuerdoConcepto;
  474.         return $this;
  475.     }
  476.     public function getPagoAcuerdo(): ?PagosAcuerdo
  477.     {
  478.         return $this->pagoAcuerdo;
  479.     }
  480.     public function setPagoAcuerdo(?PagosAcuerdo $pagoAcuerdo): self
  481.     {
  482.         $this->pagoAcuerdo $pagoAcuerdo;
  483.         return $this;
  484.     }
  485.     /**
  486.      * Get the value of fechaIngresoPago
  487.      */ 
  488.     public function getFechaIngresoPago()
  489.     {
  490.         return $this->fechaIngresoPago;
  491.     }
  492.     /**
  493.      * Set the value of fechaIngresoPago
  494.      *
  495.      * @return  self
  496.      */ 
  497.     public function setFechaIngresoPago($fechaIngresoPago)
  498.     {
  499.         $this->fechaIngresoPago $fechaIngresoPago;
  500.         return $this;
  501.     }
  502.     /**
  503.      * @return Collection<int, PagosBanco>
  504.      */
  505.     public function getPagosBancos(): Collection
  506.     {
  507.         return $this->pagosBancos;
  508.     }
  509.     public function addPagosBanco(PagosBanco $pagosBanco): self
  510.     {
  511.         if (!$this->pagosBancos->contains($pagosBanco)) {
  512.             $this->pagosBancos->add($pagosBanco);
  513.             $pagosBanco->setBoleta($this);
  514.         }
  515.         return $this;
  516.     }
  517.     public function removePagosBanco(PagosBanco $pagosBanco): self
  518.     {
  519.         if ($this->pagosBancos->removeElement($pagosBanco)) {
  520.             // set the owning side to null (unless already changed)
  521.             if ($pagosBanco->getBoleta() === $this) {
  522.                 $pagosBanco->setBoleta(null);
  523.             }
  524.         }
  525.         return $this;
  526.     }
  527.     /**
  528.      * Get the value of cuotaSindical
  529.      */
  530.     public function getCuotaSindical()
  531.     {
  532.         return $this->cuotaSindical;
  533.     }
  534.     /**
  535.      * Set the value of cuotaSindical
  536.      */
  537.     public function setCuotaSindical($cuotaSindical): self
  538.     {
  539.         $this->cuotaSindical $cuotaSindical;
  540.         return $this;
  541.     }
  542.     /**
  543.      * Get the value of seguroSepelio
  544.      */
  545.     public function getSeguroSepelio()
  546.     {
  547.         return $this->seguroSepelio;
  548.     }
  549.     /**
  550.      * Set the value of seguroSepelio
  551.      */
  552.     public function setSeguroSepelio($seguroSepelio): self
  553.     {
  554.         $this->seguroSepelio $seguroSepelio;
  555.         return $this;
  556.     }
  557.     /**
  558.      * Get the value of fondoConvencional
  559.      */
  560.     public function getFondoConvencional()
  561.     {
  562.         return $this->fondoConvencional;
  563.     }
  564.     /**
  565.      * Set the value of fondoConvencional
  566.      */
  567.     public function setFondoConvencional($fondoConvencional): self
  568.     {
  569.         $this->fondoConvencional $fondoConvencional;
  570.         return $this;
  571.     }
  572. }