src/Entity/Diversos.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Diversos
  6.  *
  7.  * @ORM\Table(name="diverso")
  8.  * @ORM\Entity(repositoryClass="App\Repository\DiversoRepository")
  9.  */
  10. class Diversos
  11. {
  12.     /**
  13.      * @var \Ramsey\Uuid\UuidInterface
  14.      *
  15.      * @ORM\Id
  16.      *  @ORM\Column(type="uuid", unique=true)
  17.      * @ORM\GeneratedValue(strategy="CUSTOM")
  18.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="copias_documentos", type="integer", nullable=true)
  25.      */
  26.     private $copiasDocumentos;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="footer_notes", type="text", nullable=true)
  31.      */
  32.     private $footerNotes;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="casas_decimais", type="integer", nullable=true)
  37.      */
  38.     private $casasDecimais;
  39.     /**
  40.      * @var int
  41.      *
  42.      * @ORM\Column(name="linhas_grelhas", type="integer", nullable=true)
  43.      */
  44.     private $linhasGrelhas;
  45.     /**
  46.      * @var bool
  47.      *
  48.      * @ORM\Column(name="activar_pos", type="boolean", nullable=true)
  49.      */
  50.     private $activarPos;
  51.     /**
  52.      * @var bool
  53.      *
  54.      * @ORM\Column(name="notificacao_email", type="boolean", nullable=true)
  55.      */
  56.     private $notificacaoEmail;
  57.     /**
  58.      *
  59.      * @ORM\Column(name="invoice_lite", type="boolean", nullable=false)
  60.      */
  61.     private $invoiceLite;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity="App\Entity\ContaBancaria", inversedBy="contaBancaria")
  64.      */
  65.     private $contaBancaria;
  66.     /**
  67.      * @ORM\ManyToOne(targetEntity="App\Entity\Moeda")
  68.      */
  69.     private $moedaPrincipal;
  70.     /**
  71.      * @ORM\ManyToOne(targetEntity="App\Entity\Moeda")
  72.      */
  73.     private $moedaAlternativa;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  76.      */
  77.     private $contaBanco;
  78.     /**
  79.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  80.      */
  81.     private $contaCaixa;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  84.      */
  85.     private $contaVenda;
  86.     /**
  87.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  88.      */
  89.     private $contaDesconto;
  90.     /**
  91.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  92.      */
  93.     private $contaServico;
  94.     /**
  95.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  96.      */
  97.     private $contaImposto;
  98.     /**
  99.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  100.      */
  101.     private $contaClient;
  102.     /**
  103.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  104.      */
  105.     private $supplierAccount;
  106.     /**
  107.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  108.      */
  109.     private $withholdingTaxAccount;
  110.     /**
  111.      * @return mixed
  112.      */
  113.     public function getWithholdingTaxAccount()
  114.     {
  115.         return $this->withholdingTaxAccount;
  116.     }
  117.     /**
  118.      * @param mixed $withholdingTaxAccount
  119.      * @return Diversos
  120.      */
  121.     public function setWithholdingTaxAccount($withholdingTaxAccount)
  122.     {
  123.         $this->withholdingTaxAccount $withholdingTaxAccount;
  124.         return $this;
  125.     }
  126.     /**
  127.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  128.      */
  129.     private $salesAccount;
  130.     /**
  131.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  132.      */
  133.     private $deductibleVat;
  134.     /**
  135.      * @return mixed
  136.      */
  137.     public function getSupplierAccount()
  138.     {
  139.         return $this->supplierAccount;
  140.     }
  141.     /**
  142.      * @param mixed $supplierAccount
  143.      * @return Diversos
  144.      */
  145.     public function setSupplierAccount($supplierAccount)
  146.     {
  147.         $this->supplierAccount $supplierAccount;
  148.         return $this;
  149.     }
  150.     /**
  151.      * @return mixed
  152.      */
  153.     public function getSalesAccount()
  154.     {
  155.         return $this->salesAccount;
  156.     }
  157.     /**
  158.      * @param mixed $salesAccount
  159.      * @return Diversos
  160.      */
  161.     public function setSalesAccount($salesAccount)
  162.     {
  163.         $this->salesAccount $salesAccount;
  164.         return $this;
  165.     }
  166.     /**
  167.      * @return mixed
  168.      */
  169.     public function getDeductibleVat()
  170.     {
  171.         return $this->deductibleVat;
  172.     }
  173.     /**
  174.      * @param mixed $deductibleVat
  175.      * @return Diversos
  176.      */
  177.     public function setDeductibleVat($deductibleVat)
  178.     {
  179.         $this->deductibleVat $deductibleVat;
  180.         return $this;
  181.     }
  182.     /**
  183.      * @return ContaBancaria
  184.      */
  185.     public function getContaBancaria()
  186.     {
  187.         return $this->contaBancaria;
  188.     }
  189.     /**
  190.      * @param mixed $contaBancaria
  191.      */
  192.     public function setContaBancaria($contaBancaria)
  193.     {
  194.         $this->contaBancaria $contaBancaria;
  195.     }
  196.     /**
  197.      * @ORM\OneToMany(targetEntity="App\Entity\Moeda", mappedBy="moedaPrincipal")
  198.      */
  199.     private $moedaSecundaria;
  200.     /**
  201.      *
  202.      * @ORM\Column(name="sharedware_house", type="boolean")
  203.      */
  204.     private $sharedWareHouse;
  205.     /**
  206.      * @return mixed
  207.      */
  208.     public function getMoedaAlternativa()
  209.     {
  210.         return $this->moedaAlternativa;
  211.     }
  212.     /**
  213.      * @param mixed $moedaAlternativa
  214.      */
  215.     public function setMoedaAlternativa($moedaAlternativa)
  216.     {
  217.         $this->moedaAlternativa $moedaAlternativa;
  218.     }
  219.     /**
  220.      * @return mixed
  221.      */
  222.     public function getMoedaSecundaria()
  223.     {
  224.         return $this->moedaSecundaria;
  225.     }
  226.     /**
  227.      * @param mixed $moedaSecundaria
  228.      */
  229.     public function setMoedaSecundaria($moedaSecundaria)
  230.     {
  231.         $this->moedaSecundaria $moedaSecundaria;
  232.     }
  233.     /**
  234.      * @return mixed
  235.      */
  236.     public function getMoedaPrincipal()
  237.     {
  238.         return $this->moedaPrincipal ?? new Moeda();
  239.     }
  240.     /**
  241.      * @param mixed $moedaPrincipal
  242.      */
  243.     public function setMoedaPrincipal($moedaPrincipal)
  244.     {
  245.         $this->moedaPrincipal $moedaPrincipal;
  246.     }
  247.     /**
  248.      * Get id
  249.      *
  250.      * @return int
  251.      */
  252.     public function getId()
  253.     {
  254.         return $this->id;
  255.     }
  256.     /**
  257.      * Set copiasDocumentos
  258.      *
  259.      * @param integer $copiasDocumentos
  260.      *
  261.      * @return Diversos
  262.      */
  263.     public function setCopiasDocumentos($copiasDocumentos)
  264.     {
  265.         $this->copiasDocumentos $copiasDocumentos;//>3 ? 3 : $copiasDocumentos<1 ? 1 : $copiasDocumentos;
  266.         //$this->copiasDocumentos = $copiasDocumentos>3 ? 3 : $copiasDocumentos<1 ? 1 : $copiasDocumentos;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Get copiasDocumentos
  271.      *
  272.      * @return int
  273.      */
  274.     public function getCopiasDocumentos()
  275.     {
  276.         return $this->copiasDocumentos;
  277.     }
  278.     /**
  279.      * Set casasDecimais
  280.      *
  281.      * @param integer $casasDecimais
  282.      *
  283.      * @return Diversos
  284.      */
  285.     public function setCasasDecimais($casasDecimais)
  286.     {
  287.         $this->casasDecimais $casasDecimais;
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get casasDecimais
  292.      *
  293.      * @return int
  294.      */
  295.     public function getCasasDecimais()
  296.     {
  297.         return $this->casasDecimais;
  298.     }
  299.     /**
  300.      * Set linhasGrelhas
  301.      *
  302.      * @param integer $linhasGrelhas
  303.      *
  304.      * @return Diversos
  305.      */
  306.     public function setLinhasGrelhas($linhasGrelhas)
  307.     {
  308.         $this->linhasGrelhas $linhasGrelhas;
  309.         return $this;
  310.     }
  311.     /**
  312.      * Get linhasGrelhas
  313.      *
  314.      * @return int
  315.      */
  316.     public function getLinhasGrelhas()
  317.     {
  318.         return $this->linhasGrelhas;
  319.     }
  320.     /**
  321.      * Set activarPos
  322.      *
  323.      * @param  $activarPos
  324.      *
  325.      * @return Diversos
  326.      */
  327.     public function setActivarPos($activarPos)
  328.     {
  329.         $this->activarPos $activarPos;
  330.         return $this;
  331.     }
  332.     /**
  333.      * Get activarPos
  334.      *
  335.      * @return bool
  336.      */
  337.     public function getActivarPos()
  338.     {
  339.         return $this->activarPos;
  340.     }
  341.     /**
  342.      * Set notificacaoEmail
  343.      *
  344.      * @param  $notificacaoEmail
  345.      *
  346.      * @return Diversos
  347.      */
  348.     public function setNotificacaoEmail($notificacaoEmail)
  349.     {
  350.         $this->notificacaoEmail $notificacaoEmail;
  351.         return $this;
  352.     }
  353.     /**
  354.      * Get notificacaoEmail
  355.      *
  356.      * @return bool
  357.      */
  358.     public function getNotificacaoEmail()
  359.     {
  360.         return $this->notificacaoEmail;
  361.     }
  362.     /**
  363.      * @return mixed
  364.      */
  365.     public function getContaBanco()
  366.     {
  367.         return $this->contaBanco;
  368.     }
  369.     /**
  370.      * @param mixed $contaBanco
  371.      */
  372.     public function setContaBanco($contaBanco)
  373.     {
  374.         $this->contaBanco $contaBanco;
  375.     }
  376.     /**
  377.      * @return mixed
  378.      */
  379.     public function getContaCaixa()
  380.     {
  381.         return $this->contaCaixa;
  382.     }
  383.     /**
  384.      * @param mixed $contaCaixa
  385.      */
  386.     public function setContaCaixa($contaCaixa)
  387.     {
  388.         $this->contaCaixa $contaCaixa;
  389.     }
  390.     /**
  391.      * @return Account
  392.      */
  393.     public function getContaDesconto()
  394.     {
  395.         return $this->contaDesconto;
  396.     }
  397.     /**
  398.      * @param mixed $contaDesconto
  399.      */
  400.     public function setContaDesconto($contaDesconto)
  401.     {
  402.         $this->contaDesconto $contaDesconto;
  403.     }
  404.     /**
  405.      * @return mixed
  406.      */
  407.     public function getContaVenda()
  408.     {
  409.         return $this->contaVenda;
  410.     }
  411.     /**
  412.      * @param mixed $contaVenda
  413.      */
  414.     public function setContaVenda($contaVenda)
  415.     {
  416.         $this->contaVenda $contaVenda;
  417.     }
  418.     /**
  419.      * @return mixed
  420.      */
  421.     public function getContaServico()
  422.     {
  423.         return $this->contaServico;
  424.     }
  425.     /**
  426.      * @param mixed $contaServico
  427.      */
  428.     public function setContaServico($contaServico)
  429.     {
  430.         $this->contaServico $contaServico;
  431.     }
  432.     /**
  433.      * @return mixed
  434.      */
  435.     public function getContaImposto()
  436.     {
  437.         return $this->contaImposto;
  438.     }
  439.     /**
  440.      * @param mixed $contaImposto
  441.      */
  442.     public function setContaImposto($contaImposto)
  443.     {
  444.         $this->contaImposto $contaImposto;
  445.     }
  446.     /**
  447.      * @return Account
  448.      */
  449.     public function getContaClient()
  450.     {
  451.         return $this->contaClient;
  452.     }
  453.     /**
  454.      * @param mixed $contaClient
  455.      * @return Diversos
  456.      */
  457.     public function setContaClient($contaClient)
  458.     {
  459.         $this->contaClient $contaClient;
  460.         return $this;
  461.     }
  462.     /**
  463.      */
  464.     public function isSharedWareHouse()
  465.     {
  466.         return $this->sharedWareHouse;
  467.     }
  468.     /**
  469.      * @param  $is
  470.      * @return Diversos
  471.      */
  472.     public function setSharedWareHouse($is)
  473.     {
  474.         $this->sharedWareHouse $is;
  475.         return $this;
  476.     }
  477.     /**
  478.      */
  479.     public function isInvoiceLite()
  480.     {
  481.         return !!$this->invoiceLite;
  482.     }
  483.     /**
  484.      * @param bool $invoiceLite
  485.      */
  486.     public function setInvoiceLite($invoiceLite)
  487.     {
  488.         $this->invoiceLite $invoiceLite;
  489.         return $this;
  490.     }
  491.     /**
  492.      * Get the value of footerNotes
  493.      *
  494.      * @return  string
  495.      */
  496.     public function getFooterNotes()
  497.     {
  498.         return $this->footerNotes;
  499.     }
  500.     /**
  501.      * Set the value of footerNotes
  502.      *
  503.      * @param  string  $footerNotes
  504.      *
  505.      * @return  self
  506.      */
  507.     public function setFooterNotes(string $footerNotes)
  508.     {
  509.         $this->footerNotes $footerNotes;
  510.         return $this;
  511.     }
  512. }