<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Diversos
*
* @ORM\Table(name="diverso")
* @ORM\Entity(repositoryClass="App\Repository\DiversoRepository")
*/
class Diversos
{
/**
* @var \Ramsey\Uuid\UuidInterface
*
* @ORM\Id
* @ORM\Column(type="uuid", unique=true)
* @ORM\GeneratedValue(strategy="CUSTOM")
* @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="copias_documentos", type="integer", nullable=true)
*/
private $copiasDocumentos;
/**
* @var string
*
* @ORM\Column(name="footer_notes", type="text", nullable=true)
*/
private $footerNotes;
/**
* @var int
*
* @ORM\Column(name="casas_decimais", type="integer", nullable=true)
*/
private $casasDecimais;
/**
* @var int
*
* @ORM\Column(name="linhas_grelhas", type="integer", nullable=true)
*/
private $linhasGrelhas;
/**
* @var bool
*
* @ORM\Column(name="activar_pos", type="boolean", nullable=true)
*/
private $activarPos;
/**
* @var bool
*
* @ORM\Column(name="notificacao_email", type="boolean", nullable=true)
*/
private $notificacaoEmail;
/**
*
* @ORM\Column(name="invoice_lite", type="boolean", nullable=false)
*/
private $invoiceLite;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ContaBancaria", inversedBy="contaBancaria")
*/
private $contaBancaria;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Moeda")
*/
private $moedaPrincipal;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Moeda")
*/
private $moedaAlternativa;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaBanco;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaCaixa;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaVenda;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaDesconto;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaServico;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaImposto;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $contaClient;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $supplierAccount;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $withholdingTaxAccount;
/**
* @return mixed
*/
public function getWithholdingTaxAccount()
{
return $this->withholdingTaxAccount;
}
/**
* @param mixed $withholdingTaxAccount
* @return Diversos
*/
public function setWithholdingTaxAccount($withholdingTaxAccount)
{
$this->withholdingTaxAccount = $withholdingTaxAccount;
return $this;
}
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $salesAccount;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
*/
private $deductibleVat;
/**
* @return mixed
*/
public function getSupplierAccount()
{
return $this->supplierAccount;
}
/**
* @param mixed $supplierAccount
* @return Diversos
*/
public function setSupplierAccount($supplierAccount)
{
$this->supplierAccount = $supplierAccount;
return $this;
}
/**
* @return mixed
*/
public function getSalesAccount()
{
return $this->salesAccount;
}
/**
* @param mixed $salesAccount
* @return Diversos
*/
public function setSalesAccount($salesAccount)
{
$this->salesAccount = $salesAccount;
return $this;
}
/**
* @return mixed
*/
public function getDeductibleVat()
{
return $this->deductibleVat;
}
/**
* @param mixed $deductibleVat
* @return Diversos
*/
public function setDeductibleVat($deductibleVat)
{
$this->deductibleVat = $deductibleVat;
return $this;
}
/**
* @return ContaBancaria
*/
public function getContaBancaria()
{
return $this->contaBancaria;
}
/**
* @param mixed $contaBancaria
*/
public function setContaBancaria($contaBancaria)
{
$this->contaBancaria = $contaBancaria;
}
/**
* @ORM\OneToMany(targetEntity="App\Entity\Moeda", mappedBy="moedaPrincipal")
*/
private $moedaSecundaria;
/**
*
* @ORM\Column(name="sharedware_house", type="boolean")
*/
private $sharedWareHouse;
/**
* @return mixed
*/
public function getMoedaAlternativa()
{
return $this->moedaAlternativa;
}
/**
* @param mixed $moedaAlternativa
*/
public function setMoedaAlternativa($moedaAlternativa)
{
$this->moedaAlternativa = $moedaAlternativa;
}
/**
* @return mixed
*/
public function getMoedaSecundaria()
{
return $this->moedaSecundaria;
}
/**
* @param mixed $moedaSecundaria
*/
public function setMoedaSecundaria($moedaSecundaria)
{
$this->moedaSecundaria = $moedaSecundaria;
}
/**
* @return mixed
*/
public function getMoedaPrincipal()
{
return $this->moedaPrincipal ?? new Moeda();
}
/**
* @param mixed $moedaPrincipal
*/
public function setMoedaPrincipal($moedaPrincipal)
{
$this->moedaPrincipal = $moedaPrincipal;
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set copiasDocumentos
*
* @param integer $copiasDocumentos
*
* @return Diversos
*/
public function setCopiasDocumentos($copiasDocumentos)
{
$this->copiasDocumentos = $copiasDocumentos;//>3 ? 3 : $copiasDocumentos<1 ? 1 : $copiasDocumentos;
//$this->copiasDocumentos = $copiasDocumentos>3 ? 3 : $copiasDocumentos<1 ? 1 : $copiasDocumentos;
return $this;
}
/**
* Get copiasDocumentos
*
* @return int
*/
public function getCopiasDocumentos()
{
return $this->copiasDocumentos;
}
/**
* Set casasDecimais
*
* @param integer $casasDecimais
*
* @return Diversos
*/
public function setCasasDecimais($casasDecimais)
{
$this->casasDecimais = $casasDecimais;
return $this;
}
/**
* Get casasDecimais
*
* @return int
*/
public function getCasasDecimais()
{
return $this->casasDecimais;
}
/**
* Set linhasGrelhas
*
* @param integer $linhasGrelhas
*
* @return Diversos
*/
public function setLinhasGrelhas($linhasGrelhas)
{
$this->linhasGrelhas = $linhasGrelhas;
return $this;
}
/**
* Get linhasGrelhas
*
* @return int
*/
public function getLinhasGrelhas()
{
return $this->linhasGrelhas;
}
/**
* Set activarPos
*
* @param $activarPos
*
* @return Diversos
*/
public function setActivarPos($activarPos)
{
$this->activarPos = $activarPos;
return $this;
}
/**
* Get activarPos
*
* @return bool
*/
public function getActivarPos()
{
return $this->activarPos;
}
/**
* Set notificacaoEmail
*
* @param $notificacaoEmail
*
* @return Diversos
*/
public function setNotificacaoEmail($notificacaoEmail)
{
$this->notificacaoEmail = $notificacaoEmail;
return $this;
}
/**
* Get notificacaoEmail
*
* @return bool
*/
public function getNotificacaoEmail()
{
return $this->notificacaoEmail;
}
/**
* @return mixed
*/
public function getContaBanco()
{
return $this->contaBanco;
}
/**
* @param mixed $contaBanco
*/
public function setContaBanco($contaBanco)
{
$this->contaBanco = $contaBanco;
}
/**
* @return mixed
*/
public function getContaCaixa()
{
return $this->contaCaixa;
}
/**
* @param mixed $contaCaixa
*/
public function setContaCaixa($contaCaixa)
{
$this->contaCaixa = $contaCaixa;
}
/**
* @return Account
*/
public function getContaDesconto()
{
return $this->contaDesconto;
}
/**
* @param mixed $contaDesconto
*/
public function setContaDesconto($contaDesconto)
{
$this->contaDesconto = $contaDesconto;
}
/**
* @return mixed
*/
public function getContaVenda()
{
return $this->contaVenda;
}
/**
* @param mixed $contaVenda
*/
public function setContaVenda($contaVenda)
{
$this->contaVenda = $contaVenda;
}
/**
* @return mixed
*/
public function getContaServico()
{
return $this->contaServico;
}
/**
* @param mixed $contaServico
*/
public function setContaServico($contaServico)
{
$this->contaServico = $contaServico;
}
/**
* @return mixed
*/
public function getContaImposto()
{
return $this->contaImposto;
}
/**
* @param mixed $contaImposto
*/
public function setContaImposto($contaImposto)
{
$this->contaImposto = $contaImposto;
}
/**
* @return Account
*/
public function getContaClient()
{
return $this->contaClient;
}
/**
* @param mixed $contaClient
* @return Diversos
*/
public function setContaClient($contaClient)
{
$this->contaClient = $contaClient;
return $this;
}
/**
*/
public function isSharedWareHouse()
{
return $this->sharedWareHouse;
}
/**
* @param $is
* @return Diversos
*/
public function setSharedWareHouse($is)
{
$this->sharedWareHouse = $is;
return $this;
}
/**
*/
public function isInvoiceLite()
{
return !!$this->invoiceLite;
}
/**
* @param bool $invoiceLite
*/
public function setInvoiceLite($invoiceLite)
{
$this->invoiceLite = $invoiceLite;
return $this;
}
/**
* Get the value of footerNotes
*
* @return string
*/
public function getFooterNotes()
{
return $this->footerNotes;
}
/**
* Set the value of footerNotes
*
* @param string $footerNotes
*
* @return self
*/
public function setFooterNotes(string $footerNotes)
{
$this->footerNotes = $footerNotes;
return $this;
}
}