<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiProperty;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
/**
* @ORM\Entity(repositoryClass="App\Repository\ReceiptRepository")
*/
class Receipt
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
* @ApiProperty(identifier=false)
*/
private $id;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $create_date;
/**
* @ORM\Column(type="string", length=55, nullable=true)
*/
private $status;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $discount;
/**
* @ORM\Column(type="string", length=55, nullable=true)
*/
private $discount_type;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $comment;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total_otax;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total_fixed;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total_otax_fixed;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total_tax;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total_tax_fixed;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cart_total;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cart_total_otax;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cart_total_fixed;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cart_total_otax_fixed;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cart_total_tax;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cart_total_tax_fixed;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $number;
/**
* @ORM\Column(type="uuid", unique=true, nullable=true)
*/
private $uuid;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $canceled;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $reversal_receipt;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptCustomer", mappedBy="receipt")
*/
private $receiptCustomers;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptCustomerAddress", mappedBy="receipt")
*/
private $receiptCustomerAddresses;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptCustomerGroup", mappedBy="receipt")
*/
private $receiptCustomerGroups;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptDiscount", mappedBy="receipt")
*/
private $receiptDiscounts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptPrice", mappedBy="receipt")
*/
private $receiptPrices;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptPriceGroup", mappedBy="receipt")
*/
private $receiptPriceGroups;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptProduct", mappedBy="receipt")
*/
private $receiptProducts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptScalePrice", mappedBy="receipt")
*/
private $receiptScalePrices;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptTax", mappedBy="receipt")
*/
private $receiptTaxes;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptUnit", mappedBy="receipt")
*/
private $receiptUnits;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptUser", mappedBy="receipt")
*/
private $receiptUsers;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptEmployeeGroup", mappedBy="receipt")
*/
private $receiptEmployeeGroups;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptCartProduct", mappedBy="receipt")
*/
private $receiptCartProducts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptDocument", mappedBy="receipt")
*/
private $receiptDocuments;
/**
* @ORM\OneToMany(targetEntity="App\Entity\FiskalyTransaction", mappedBy="receipt")
*/
private $fiskalyTransactions;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptTransaction", mappedBy="receipt")
*/
private $receiptTransactions;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ReceiptContraAccount", mappedBy="receipt")
*/
private $receiptContraAccounts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Reversal", mappedBy="receipt")
*/
private $reversals;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Reversal", mappedBy="reversal_receipt")
*/
private $reversal_receipt_reversals;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ReceiptCashbox", inversedBy="receipts")
* @ORM\JoinColumn(name="receipt_cashbox_id", referencedColumnName="id")
*/
private $receiptCashbox;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ReceiptLocation", inversedBy="receipts")
* @ORM\JoinColumn(name="receipt_location_id", referencedColumnName="id")
*/
private $receiptLocation;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ReceiptEmployee", inversedBy="receipts")
* @ORM\JoinColumn(name="receipt_employee_id", referencedColumnName="id")
*/
private $receiptEmployee;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="receipts")
* @ORM\JoinColumn(name="customer_id", referencedColumnName="id")
*/
private $customer;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\CustomerAddress", inversedBy="receipts")
* @ORM\JoinColumn(name="customer_address_id", referencedColumnName="id")
*/
private $customerAddress;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DailyFinancialStatement", inversedBy="receipts")
* @ORM\JoinColumn(name="daily_financial_statement_id", referencedColumnName="id")
*/
private $dailyFinancialStatement;
/**
* @ORM\ManyToMany(targetEntity="App\Entity\FiskalyReceiptType", mappedBy="receipts")
*/
private $fiskalyReceiptTypes;
public function __construct()
{
$this->receiptCustomers = new ArrayCollection();
$this->receiptCustomerAddresses = new ArrayCollection();
$this->receiptCustomerGroups = new ArrayCollection();
$this->receiptDiscounts = new ArrayCollection();
$this->receiptPrices = new ArrayCollection();
$this->receiptPriceGroups = new ArrayCollection();
$this->receiptProducts = new ArrayCollection();
$this->receiptScalePrices = new ArrayCollection();
$this->receiptTaxes = new ArrayCollection();
$this->receiptUnits = new ArrayCollection();
$this->receiptUsers = new ArrayCollection();
$this->receiptEmployeeGroups = new ArrayCollection();
$this->receiptCartProducts = new ArrayCollection();
$this->receiptDocuments = new ArrayCollection();
$this->fiskalyTransactions = new ArrayCollection();
$this->receiptTransactions = new ArrayCollection();
$this->receiptContraAccounts = new ArrayCollection();
$this->reversals = new ArrayCollection();
$this->reversal_receipt_reversals = new ArrayCollection();
$this->fiskalyReceiptTypes = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getCreateDate(): ?\DateTimeInterface
{
return $this->create_date;
}
public function setCreateDate(?\DateTimeInterface $create_date): self
{
$this->create_date = $create_date;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getDiscount(): ?int
{
return $this->discount;
}
public function setDiscount(?int $discount): self
{
$this->discount = $discount;
return $this;
}
public function getDiscountType(): ?string
{
return $this->discount_type;
}
public function setDiscountType(?string $discount_type): self
{
$this->discount_type = $discount_type;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(?float $total): self
{
$this->total = $total;
return $this;
}
public function getTotalOtax(): ?float
{
return $this->total_otax;
}
public function setTotalOtax(?float $total_otax): self
{
$this->total_otax = $total_otax;
return $this;
}
public function getTotalFixed(): ?float
{
return $this->total_fixed;
}
public function setTotalFixed(?float $total_fixed): self
{
$this->total_fixed = $total_fixed;
return $this;
}
public function getTotalOtaxFixed(): ?float
{
return $this->total_otax_fixed;
}
public function setTotalOtaxFixed(?float $total_otax_fixed): self
{
$this->total_otax_fixed = $total_otax_fixed;
return $this;
}
public function getTotalTax(): ?float
{
return $this->total_tax;
}
public function setTotalTax(?float $total_tax): self
{
$this->total_tax = $total_tax;
return $this;
}
public function getTotalTaxFixed(): ?float
{
return $this->total_tax_fixed;
}
public function setTotalTaxFixed(?float $total_tax_fixed): self
{
$this->total_tax_fixed = $total_tax_fixed;
return $this;
}
public function getCartTotal(): ?float
{
return $this->cart_total;
}
public function setCartTotal(?float $cart_total): self
{
$this->cart_total = $cart_total;
return $this;
}
public function getCartTotalOtax(): ?float
{
return $this->cart_total_otax;
}
public function setCartTotalOtax(?float $cart_total_otax): self
{
$this->cart_total_otax = $cart_total_otax;
return $this;
}
public function getCartTotalFixed(): ?float
{
return $this->cart_total_fixed;
}
public function setCartTotalFixed(?float $cart_total_fixed): self
{
$this->cart_total_fixed = $cart_total_fixed;
return $this;
}
public function getCartTotalOtaxFixed(): ?float
{
return $this->cart_total_otax_fixed;
}
public function setCartTotalOtaxFixed(?float $cart_total_otax_fixed): self
{
$this->cart_total_otax_fixed = $cart_total_otax_fixed;
return $this;
}
public function getCartTotalTax(): ?float
{
return $this->cart_total_tax;
}
public function setCartTotalTax(?float $cart_total_tax): self
{
$this->cart_total_tax = $cart_total_tax;
return $this;
}
public function getCartTotalTaxFixed(): ?float
{
return $this->cart_total_tax_fixed;
}
public function setCartTotalTaxFixed(?float $cart_total_tax_fixed): self
{
$this->cart_total_tax_fixed = $cart_total_tax_fixed;
return $this;
}
public function getNumber(): ?int
{
return $this->number;
}
public function setNumber(?int $number): self
{
$this->number = $number;
return $this;
}
public function getUuid()
{
return $this->uuid;
}
public function setUuid($uuid): self
{
$this->uuid = $uuid;
return $this;
}
public function getCanceled(): ?bool
{
return $this->canceled;
}
public function setCanceled(?bool $canceled): self
{
$this->canceled = $canceled;
return $this;
}
public function getReversalReceipt(): ?bool
{
return $this->reversal_receipt;
}
public function setReversalReceipt(?bool $reversal_receipt): self
{
$this->reversal_receipt = $reversal_receipt;
return $this;
}
/**
* @return Collection<int, ReceiptCustomer>
*/
public function getReceiptCustomers(): Collection
{
return $this->receiptCustomers;
}
public function addReceiptCustomer(ReceiptCustomer $receiptCustomer): self
{
if (!$this->receiptCustomers->contains($receiptCustomer)) {
$this->receiptCustomers[] = $receiptCustomer;
$receiptCustomer->setReceipt($this);
}
return $this;
}
public function removeReceiptCustomer(ReceiptCustomer $receiptCustomer): self
{
if ($this->receiptCustomers->removeElement($receiptCustomer)) {
// set the owning side to null (unless already changed)
if ($receiptCustomer->getReceipt() === $this) {
$receiptCustomer->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptCustomerAddress>
*/
public function getReceiptCustomerAddresses(): Collection
{
return $this->receiptCustomerAddresses;
}
public function addReceiptCustomerAddress(ReceiptCustomerAddress $receiptCustomerAddress): self
{
if (!$this->receiptCustomerAddresses->contains($receiptCustomerAddress)) {
$this->receiptCustomerAddresses[] = $receiptCustomerAddress;
$receiptCustomerAddress->setReceipt($this);
}
return $this;
}
public function removeReceiptCustomerAddress(ReceiptCustomerAddress $receiptCustomerAddress): self
{
if ($this->receiptCustomerAddresses->removeElement($receiptCustomerAddress)) {
// set the owning side to null (unless already changed)
if ($receiptCustomerAddress->getReceipt() === $this) {
$receiptCustomerAddress->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptCustomerGroup>
*/
public function getReceiptCustomerGroups(): Collection
{
return $this->receiptCustomerGroups;
}
public function addReceiptCustomerGroup(ReceiptCustomerGroup $receiptCustomerGroup): self
{
if (!$this->receiptCustomerGroups->contains($receiptCustomerGroup)) {
$this->receiptCustomerGroups[] = $receiptCustomerGroup;
$receiptCustomerGroup->setReceipt($this);
}
return $this;
}
public function removeReceiptCustomerGroup(ReceiptCustomerGroup $receiptCustomerGroup): self
{
if ($this->receiptCustomerGroups->removeElement($receiptCustomerGroup)) {
// set the owning side to null (unless already changed)
if ($receiptCustomerGroup->getReceipt() === $this) {
$receiptCustomerGroup->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptDiscount>
*/
public function getReceiptDiscounts(): Collection
{
return $this->receiptDiscounts;
}
public function addReceiptDiscount(ReceiptDiscount $receiptDiscount): self
{
if (!$this->receiptDiscounts->contains($receiptDiscount)) {
$this->receiptDiscounts[] = $receiptDiscount;
$receiptDiscount->setReceipt($this);
}
return $this;
}
public function removeReceiptDiscount(ReceiptDiscount $receiptDiscount): self
{
if ($this->receiptDiscounts->removeElement($receiptDiscount)) {
// set the owning side to null (unless already changed)
if ($receiptDiscount->getReceipt() === $this) {
$receiptDiscount->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptPrice>
*/
public function getReceiptPrices(): Collection
{
return $this->receiptPrices;
}
public function addReceiptPrice(ReceiptPrice $receiptPrice): self
{
if (!$this->receiptPrices->contains($receiptPrice)) {
$this->receiptPrices[] = $receiptPrice;
$receiptPrice->setReceipt($this);
}
return $this;
}
public function removeReceiptPrice(ReceiptPrice $receiptPrice): self
{
if ($this->receiptPrices->removeElement($receiptPrice)) {
// set the owning side to null (unless already changed)
if ($receiptPrice->getReceipt() === $this) {
$receiptPrice->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptPriceGroup>
*/
public function getReceiptPriceGroups(): Collection
{
return $this->receiptPriceGroups;
}
public function addReceiptPriceGroup(ReceiptPriceGroup $receiptPriceGroup): self
{
if (!$this->receiptPriceGroups->contains($receiptPriceGroup)) {
$this->receiptPriceGroups[] = $receiptPriceGroup;
$receiptPriceGroup->setReceipt($this);
}
return $this;
}
public function removeReceiptPriceGroup(ReceiptPriceGroup $receiptPriceGroup): self
{
if ($this->receiptPriceGroups->removeElement($receiptPriceGroup)) {
// set the owning side to null (unless already changed)
if ($receiptPriceGroup->getReceipt() === $this) {
$receiptPriceGroup->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptProduct>
*/
public function getReceiptProducts(): Collection
{
return $this->receiptProducts;
}
public function addReceiptProduct(ReceiptProduct $receiptProduct): self
{
if (!$this->receiptProducts->contains($receiptProduct)) {
$this->receiptProducts[] = $receiptProduct;
$receiptProduct->setReceipt($this);
}
return $this;
}
public function removeReceiptProduct(ReceiptProduct $receiptProduct): self
{
if ($this->receiptProducts->removeElement($receiptProduct)) {
// set the owning side to null (unless already changed)
if ($receiptProduct->getReceipt() === $this) {
$receiptProduct->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptScalePrice>
*/
public function getReceiptScalePrices(): Collection
{
return $this->receiptScalePrices;
}
public function addReceiptScalePrice(ReceiptScalePrice $receiptScalePrice): self
{
if (!$this->receiptScalePrices->contains($receiptScalePrice)) {
$this->receiptScalePrices[] = $receiptScalePrice;
$receiptScalePrice->setReceipt($this);
}
return $this;
}
public function removeReceiptScalePrice(ReceiptScalePrice $receiptScalePrice): self
{
if ($this->receiptScalePrices->removeElement($receiptScalePrice)) {
// set the owning side to null (unless already changed)
if ($receiptScalePrice->getReceipt() === $this) {
$receiptScalePrice->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptTax>
*/
public function getReceiptTaxes(): Collection
{
return $this->receiptTaxes;
}
public function addReceiptTax(ReceiptTax $receiptTax): self
{
if (!$this->receiptTaxes->contains($receiptTax)) {
$this->receiptTaxes[] = $receiptTax;
$receiptTax->setReceipt($this);
}
return $this;
}
public function removeReceiptTax(ReceiptTax $receiptTax): self
{
if ($this->receiptTaxes->removeElement($receiptTax)) {
// set the owning side to null (unless already changed)
if ($receiptTax->getReceipt() === $this) {
$receiptTax->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptUnit>
*/
public function getReceiptUnits(): Collection
{
return $this->receiptUnits;
}
public function addReceiptUnit(ReceiptUnit $receiptUnit): self
{
if (!$this->receiptUnits->contains($receiptUnit)) {
$this->receiptUnits[] = $receiptUnit;
$receiptUnit->setReceipt($this);
}
return $this;
}
public function removeReceiptUnit(ReceiptUnit $receiptUnit): self
{
if ($this->receiptUnits->removeElement($receiptUnit)) {
// set the owning side to null (unless already changed)
if ($receiptUnit->getReceipt() === $this) {
$receiptUnit->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptUser>
*/
public function getReceiptUsers(): Collection
{
return $this->receiptUsers;
}
public function addReceiptUser(ReceiptUser $receiptUser): self
{
if (!$this->receiptUsers->contains($receiptUser)) {
$this->receiptUsers[] = $receiptUser;
$receiptUser->setReceipt($this);
}
return $this;
}
public function removeReceiptUser(ReceiptUser $receiptUser): self
{
if ($this->receiptUsers->removeElement($receiptUser)) {
// set the owning side to null (unless already changed)
if ($receiptUser->getReceipt() === $this) {
$receiptUser->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptEmployeeGroup>
*/
public function getReceiptEmployeeGroups(): Collection
{
return $this->receiptEmployeeGroups;
}
public function addReceiptEmployeeGroup(ReceiptEmployeeGroup $receiptEmployeeGroup): self
{
if (!$this->receiptEmployeeGroups->contains($receiptEmployeeGroup)) {
$this->receiptEmployeeGroups[] = $receiptEmployeeGroup;
$receiptEmployeeGroup->setReceipt($this);
}
return $this;
}
public function removeReceiptEmployeeGroup(ReceiptEmployeeGroup $receiptEmployeeGroup): self
{
if ($this->receiptEmployeeGroups->removeElement($receiptEmployeeGroup)) {
// set the owning side to null (unless already changed)
if ($receiptEmployeeGroup->getReceipt() === $this) {
$receiptEmployeeGroup->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptCartProduct>
*/
public function getReceiptCartProducts(): Collection
{
return $this->receiptCartProducts;
}
public function addReceiptCartProduct(ReceiptCartProduct $receiptCartProduct): self
{
if (!$this->receiptCartProducts->contains($receiptCartProduct)) {
$this->receiptCartProducts[] = $receiptCartProduct;
$receiptCartProduct->setReceipt($this);
}
return $this;
}
public function removeReceiptCartProduct(ReceiptCartProduct $receiptCartProduct): self
{
if ($this->receiptCartProducts->removeElement($receiptCartProduct)) {
// set the owning side to null (unless already changed)
if ($receiptCartProduct->getReceipt() === $this) {
$receiptCartProduct->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptDocument>
*/
public function getReceiptDocuments(): Collection
{
return $this->receiptDocuments;
}
public function addReceiptDocument(ReceiptDocument $receiptDocument): self
{
if (!$this->receiptDocuments->contains($receiptDocument)) {
$this->receiptDocuments[] = $receiptDocument;
$receiptDocument->setReceipt($this);
}
return $this;
}
public function removeReceiptDocument(ReceiptDocument $receiptDocument): self
{
if ($this->receiptDocuments->removeElement($receiptDocument)) {
// set the owning side to null (unless already changed)
if ($receiptDocument->getReceipt() === $this) {
$receiptDocument->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, FiskalyTransaction>
*/
public function getFiskalyTransactions(): Collection
{
return $this->fiskalyTransactions;
}
public function addFiskalyTransaction(FiskalyTransaction $fiskalyTransaction): self
{
if (!$this->fiskalyTransactions->contains($fiskalyTransaction)) {
$this->fiskalyTransactions[] = $fiskalyTransaction;
$fiskalyTransaction->setReceipt($this);
}
return $this;
}
public function removeFiskalyTransaction(FiskalyTransaction $fiskalyTransaction): self
{
if ($this->fiskalyTransactions->removeElement($fiskalyTransaction)) {
// set the owning side to null (unless already changed)
if ($fiskalyTransaction->getReceipt() === $this) {
$fiskalyTransaction->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptTransaction>
*/
public function getReceiptTransactions(): Collection
{
return $this->receiptTransactions;
}
public function addReceiptTransaction(ReceiptTransaction $receiptTransaction): self
{
if (!$this->receiptTransactions->contains($receiptTransaction)) {
$this->receiptTransactions[] = $receiptTransaction;
$receiptTransaction->setReceipt($this);
}
return $this;
}
public function removeReceiptTransaction(ReceiptTransaction $receiptTransaction): self
{
if ($this->receiptTransactions->removeElement($receiptTransaction)) {
// set the owning side to null (unless already changed)
if ($receiptTransaction->getReceipt() === $this) {
$receiptTransaction->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, ReceiptContraAccount>
*/
public function getReceiptContraAccounts(): Collection
{
return $this->receiptContraAccounts;
}
public function addReceiptContraAccount(ReceiptContraAccount $receiptContraAccount): self
{
if (!$this->receiptContraAccounts->contains($receiptContraAccount)) {
$this->receiptContraAccounts[] = $receiptContraAccount;
$receiptContraAccount->setReceipt($this);
}
return $this;
}
public function removeReceiptContraAccount(ReceiptContraAccount $receiptContraAccount): self
{
if ($this->receiptContraAccounts->removeElement($receiptContraAccount)) {
// set the owning side to null (unless already changed)
if ($receiptContraAccount->getReceipt() === $this) {
$receiptContraAccount->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, Reversal>
*/
public function getReversals(): Collection
{
return $this->reversals;
}
public function addReversal(Reversal $reversal): self
{
if (!$this->reversals->contains($reversal)) {
$this->reversals[] = $reversal;
$reversal->setReceipt($this);
}
return $this;
}
public function removeReversal(Reversal $reversal): self
{
if ($this->reversals->removeElement($reversal)) {
// set the owning side to null (unless already changed)
if ($reversal->getReceipt() === $this) {
$reversal->setReceipt(null);
}
}
return $this;
}
/**
* @return Collection<int, Reversal>
*/
public function getReversalReceiptReversals(): Collection
{
return $this->reversal_receipt_reversals;
}
public function addReversalReceiptReversal(Reversal $reversalReceiptReversal): self
{
if (!$this->reversal_receipt_reversals->contains($reversalReceiptReversal)) {
$this->reversal_receipt_reversals[] = $reversalReceiptReversal;
$reversalReceiptReversal->setReversalReceipt($this);
}
return $this;
}
public function removeReversalReceiptReversal(Reversal $reversalReceiptReversal): self
{
if ($this->reversal_receipt_reversals->removeElement($reversalReceiptReversal)) {
// set the owning side to null (unless already changed)
if ($reversalReceiptReversal->getReversalReceipt() === $this) {
$reversalReceiptReversal->setReversalReceipt(null);
}
}
return $this;
}
public function getReceiptCashbox(): ?ReceiptCashbox
{
return $this->receiptCashbox;
}
public function setReceiptCashbox(?ReceiptCashbox $receiptCashbox): self
{
$this->receiptCashbox = $receiptCashbox;
return $this;
}
public function getReceiptLocation(): ?ReceiptLocation
{
return $this->receiptLocation;
}
public function setReceiptLocation(?ReceiptLocation $receiptLocation): self
{
$this->receiptLocation = $receiptLocation;
return $this;
}
public function getReceiptEmployee(): ?ReceiptEmployee
{
return $this->receiptEmployee;
}
public function setReceiptEmployee(?ReceiptEmployee $receiptEmployee): self
{
$this->receiptEmployee = $receiptEmployee;
return $this;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getCustomerAddress(): ?CustomerAddress
{
return $this->customerAddress;
}
public function setCustomerAddress(?CustomerAddress $customerAddress): self
{
$this->customerAddress = $customerAddress;
return $this;
}
public function getDailyFinancialStatement(): ?DailyFinancialStatement
{
return $this->dailyFinancialStatement;
}
public function setDailyFinancialStatement(?DailyFinancialStatement $dailyFinancialStatement): self
{
$this->dailyFinancialStatement = $dailyFinancialStatement;
return $this;
}
/**
* @return Collection<int, FiskalyReceiptType>
*/
public function getFiskalyReceiptTypes(): Collection
{
return $this->fiskalyReceiptTypes;
}
public function addFiskalyReceiptType(FiskalyReceiptType $fiskalyReceiptType): self
{
if (!$this->fiskalyReceiptTypes->contains($fiskalyReceiptType)) {
$this->fiskalyReceiptTypes[] = $fiskalyReceiptType;
$fiskalyReceiptType->addReceipt($this);
}
return $this;
}
public function removeFiskalyReceiptType(FiskalyReceiptType $fiskalyReceiptType): self
{
if ($this->fiskalyReceiptTypes->removeElement($fiskalyReceiptType)) {
$fiskalyReceiptType->removeReceipt($this);
}
return $this;
}
}