src/Entity/Receipt.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiProperty;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Ramsey\Uuid\Uuid;
  8. use Ramsey\Uuid\UuidInterface;
  9. /**
  10.  * @ORM\Entity(repositoryClass="App\Repository\ReceiptRepository")
  11.  */
  12. class Receipt
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\Column(type="integer")
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      * @ApiProperty(identifier=false)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="datetime", nullable=true)
  23.      */
  24.     private $create_date;
  25.     /**
  26.      * @ORM\Column(type="string", length=55, nullable=true)
  27.      */
  28.     private $status;
  29.     /**
  30.      * @ORM\Column(type="integer", nullable=true)
  31.      */
  32.     private $discount;
  33.     /**
  34.      * @ORM\Column(type="string", length=55, nullable=true)
  35.      */
  36.     private $discount_type;
  37.     /**
  38.      * @ORM\Column(type="text", nullable=true)
  39.      */
  40.     private $comment;
  41.     /**
  42.      * @ORM\Column(type="float", nullable=true)
  43.      */
  44.     private $total;
  45.     /**
  46.      * @ORM\Column(type="float", nullable=true)
  47.      */
  48.     private $total_otax;
  49.     /**
  50.      * @ORM\Column(type="float", nullable=true)
  51.      */
  52.     private $total_fixed;
  53.     /**
  54.      * @ORM\Column(type="float", nullable=true)
  55.      */
  56.     private $total_otax_fixed;
  57.     /**
  58.      * @ORM\Column(type="float", nullable=true)
  59.      */
  60.     private $total_tax;
  61.     /**
  62.      * @ORM\Column(type="float", nullable=true)
  63.      */
  64.     private $total_tax_fixed;
  65.     /**
  66.      * @ORM\Column(type="float", nullable=true)
  67.      */
  68.     private $cart_total;
  69.     /**
  70.      * @ORM\Column(type="float", nullable=true)
  71.      */
  72.     private $cart_total_otax;
  73.     /**
  74.      * @ORM\Column(type="float", nullable=true)
  75.      */
  76.     private $cart_total_fixed;
  77.     /**
  78.      * @ORM\Column(type="float", nullable=true)
  79.      */
  80.     private $cart_total_otax_fixed;
  81.     /**
  82.      * @ORM\Column(type="float", nullable=true)
  83.      */
  84.     private $cart_total_tax;
  85.     /**
  86.      * @ORM\Column(type="float", nullable=true)
  87.      */
  88.     private $cart_total_tax_fixed;
  89.     /**
  90.      * @ORM\Column(type="integer", nullable=true)
  91.      */
  92.     private $number;
  93.     /**
  94.      * @ORM\Column(type="uuid", unique=true, nullable=true)
  95.      */
  96.     private $uuid;
  97.     /**
  98.      * @ORM\Column(type="boolean", nullable=true)
  99.      */
  100.     private $canceled;
  101.     /**
  102.      * @ORM\Column(type="boolean", nullable=true)
  103.      */
  104.     private $reversal_receipt;
  105.     /**
  106.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptCustomer", mappedBy="receipt")
  107.      */
  108.     private $receiptCustomers;
  109.     /**
  110.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptCustomerAddress", mappedBy="receipt")
  111.      */
  112.     private $receiptCustomerAddresses;
  113.     /**
  114.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptCustomerGroup", mappedBy="receipt")
  115.      */
  116.     private $receiptCustomerGroups;
  117.     /**
  118.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptDiscount", mappedBy="receipt")
  119.      */
  120.     private $receiptDiscounts;
  121.     /**
  122.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptPrice", mappedBy="receipt")
  123.      */
  124.     private $receiptPrices;
  125.     /**
  126.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptPriceGroup", mappedBy="receipt")
  127.      */
  128.     private $receiptPriceGroups;
  129.     /**
  130.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptProduct", mappedBy="receipt")
  131.      */
  132.     private $receiptProducts;
  133.     /**
  134.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptScalePrice", mappedBy="receipt")
  135.      */
  136.     private $receiptScalePrices;
  137.     /**
  138.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptTax", mappedBy="receipt")
  139.      */
  140.     private $receiptTaxes;
  141.     /**
  142.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptUnit", mappedBy="receipt")
  143.      */
  144.     private $receiptUnits;
  145.     /**
  146.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptUser", mappedBy="receipt")
  147.      */
  148.     private $receiptUsers;
  149.     /**
  150.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptEmployeeGroup", mappedBy="receipt")
  151.      */
  152.     private $receiptEmployeeGroups;
  153.     /**
  154.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptCartProduct", mappedBy="receipt")
  155.      */
  156.     private $receiptCartProducts;
  157.     /**
  158.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptDocument", mappedBy="receipt")
  159.      */
  160.     private $receiptDocuments;
  161.     /**
  162.      * @ORM\OneToMany(targetEntity="App\Entity\FiskalyTransaction", mappedBy="receipt")
  163.      */
  164.     private $fiskalyTransactions;
  165.     /**
  166.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptTransaction", mappedBy="receipt")
  167.      */
  168.     private $receiptTransactions;
  169.     /**
  170.      * @ORM\OneToMany(targetEntity="App\Entity\ReceiptContraAccount", mappedBy="receipt")
  171.      */
  172.     private $receiptContraAccounts;
  173.     /**
  174.      * @ORM\OneToMany(targetEntity="App\Entity\Reversal", mappedBy="receipt")
  175.      */
  176.     private $reversals;
  177.     /**
  178.      * @ORM\OneToMany(targetEntity="App\Entity\Reversal", mappedBy="reversal_receipt")
  179.      */
  180.     private $reversal_receipt_reversals;
  181.     /**
  182.      * @ORM\ManyToOne(targetEntity="App\Entity\ReceiptCashbox", inversedBy="receipts")
  183.      * @ORM\JoinColumn(name="receipt_cashbox_id", referencedColumnName="id")
  184.      */
  185.     private $receiptCashbox;
  186.     /**
  187.      * @ORM\ManyToOne(targetEntity="App\Entity\ReceiptLocation", inversedBy="receipts")
  188.      * @ORM\JoinColumn(name="receipt_location_id", referencedColumnName="id")
  189.      */
  190.     private $receiptLocation;
  191.     /**
  192.      * @ORM\ManyToOne(targetEntity="App\Entity\ReceiptEmployee", inversedBy="receipts")
  193.      * @ORM\JoinColumn(name="receipt_employee_id", referencedColumnName="id")
  194.      */
  195.     private $receiptEmployee;
  196.     /**
  197.      * @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="receipts")
  198.      * @ORM\JoinColumn(name="customer_id", referencedColumnName="id")
  199.      */
  200.     private $customer;
  201.     /**
  202.      * @ORM\ManyToOne(targetEntity="App\Entity\CustomerAddress", inversedBy="receipts")
  203.      * @ORM\JoinColumn(name="customer_address_id", referencedColumnName="id")
  204.      */
  205.     private $customerAddress;
  206.     /**
  207.      * @ORM\ManyToOne(targetEntity="App\Entity\DailyFinancialStatement", inversedBy="receipts")
  208.      * @ORM\JoinColumn(name="daily_financial_statement_id", referencedColumnName="id")
  209.      */
  210.     private $dailyFinancialStatement;
  211.     /**
  212.      * @ORM\ManyToMany(targetEntity="App\Entity\FiskalyReceiptType", mappedBy="receipts")
  213.      */
  214.     private $fiskalyReceiptTypes;
  215.     public function __construct()
  216.     {
  217.         $this->receiptCustomers = new ArrayCollection();
  218.         $this->receiptCustomerAddresses = new ArrayCollection();
  219.         $this->receiptCustomerGroups = new ArrayCollection();
  220.         $this->receiptDiscounts = new ArrayCollection();
  221.         $this->receiptPrices = new ArrayCollection();
  222.         $this->receiptPriceGroups = new ArrayCollection();
  223.         $this->receiptProducts = new ArrayCollection();
  224.         $this->receiptScalePrices = new ArrayCollection();
  225.         $this->receiptTaxes = new ArrayCollection();
  226.         $this->receiptUnits = new ArrayCollection();
  227.         $this->receiptUsers = new ArrayCollection();
  228.         $this->receiptEmployeeGroups = new ArrayCollection();
  229.         $this->receiptCartProducts = new ArrayCollection();
  230.         $this->receiptDocuments = new ArrayCollection();
  231.         $this->fiskalyTransactions = new ArrayCollection();
  232.         $this->receiptTransactions = new ArrayCollection();
  233.         $this->receiptContraAccounts = new ArrayCollection();
  234.         $this->reversals = new ArrayCollection();
  235.         $this->reversal_receipt_reversals = new ArrayCollection();
  236.         $this->fiskalyReceiptTypes = new ArrayCollection();
  237.     }
  238.     public function getId(): ?int
  239.     {
  240.         return $this->id;
  241.     }
  242.     public function getCreateDate(): ?\DateTimeInterface
  243.     {
  244.         return $this->create_date;
  245.     }
  246.     public function setCreateDate(?\DateTimeInterface $create_date): self
  247.     {
  248.         $this->create_date $create_date;
  249.         return $this;
  250.     }
  251.     public function getStatus(): ?string
  252.     {
  253.         return $this->status;
  254.     }
  255.     public function setStatus(?string $status): self
  256.     {
  257.         $this->status $status;
  258.         return $this;
  259.     }
  260.     public function getDiscount(): ?int
  261.     {
  262.         return $this->discount;
  263.     }
  264.     public function setDiscount(?int $discount): self
  265.     {
  266.         $this->discount $discount;
  267.         return $this;
  268.     }
  269.     public function getDiscountType(): ?string
  270.     {
  271.         return $this->discount_type;
  272.     }
  273.     public function setDiscountType(?string $discount_type): self
  274.     {
  275.         $this->discount_type $discount_type;
  276.         return $this;
  277.     }
  278.     public function getComment(): ?string
  279.     {
  280.         return $this->comment;
  281.     }
  282.     public function setComment(?string $comment): self
  283.     {
  284.         $this->comment $comment;
  285.         return $this;
  286.     }
  287.     public function getTotal(): ?float
  288.     {
  289.         return $this->total;
  290.     }
  291.     public function setTotal(?float $total): self
  292.     {
  293.         $this->total $total;
  294.         return $this;
  295.     }
  296.     public function getTotalOtax(): ?float
  297.     {
  298.         return $this->total_otax;
  299.     }
  300.     public function setTotalOtax(?float $total_otax): self
  301.     {
  302.         $this->total_otax $total_otax;
  303.         return $this;
  304.     }
  305.     public function getTotalFixed(): ?float
  306.     {
  307.         return $this->total_fixed;
  308.     }
  309.     public function setTotalFixed(?float $total_fixed): self
  310.     {
  311.         $this->total_fixed $total_fixed;
  312.         return $this;
  313.     }
  314.     public function getTotalOtaxFixed(): ?float
  315.     {
  316.         return $this->total_otax_fixed;
  317.     }
  318.     public function setTotalOtaxFixed(?float $total_otax_fixed): self
  319.     {
  320.         $this->total_otax_fixed $total_otax_fixed;
  321.         return $this;
  322.     }
  323.     public function getTotalTax(): ?float
  324.     {
  325.         return $this->total_tax;
  326.     }
  327.     public function setTotalTax(?float $total_tax): self
  328.     {
  329.         $this->total_tax $total_tax;
  330.         return $this;
  331.     }
  332.     public function getTotalTaxFixed(): ?float
  333.     {
  334.         return $this->total_tax_fixed;
  335.     }
  336.     public function setTotalTaxFixed(?float $total_tax_fixed): self
  337.     {
  338.         $this->total_tax_fixed $total_tax_fixed;
  339.         return $this;
  340.     }
  341.     public function getCartTotal(): ?float
  342.     {
  343.         return $this->cart_total;
  344.     }
  345.     public function setCartTotal(?float $cart_total): self
  346.     {
  347.         $this->cart_total $cart_total;
  348.         return $this;
  349.     }
  350.     public function getCartTotalOtax(): ?float
  351.     {
  352.         return $this->cart_total_otax;
  353.     }
  354.     public function setCartTotalOtax(?float $cart_total_otax): self
  355.     {
  356.         $this->cart_total_otax $cart_total_otax;
  357.         return $this;
  358.     }
  359.     public function getCartTotalFixed(): ?float
  360.     {
  361.         return $this->cart_total_fixed;
  362.     }
  363.     public function setCartTotalFixed(?float $cart_total_fixed): self
  364.     {
  365.         $this->cart_total_fixed $cart_total_fixed;
  366.         return $this;
  367.     }
  368.     public function getCartTotalOtaxFixed(): ?float
  369.     {
  370.         return $this->cart_total_otax_fixed;
  371.     }
  372.     public function setCartTotalOtaxFixed(?float $cart_total_otax_fixed): self
  373.     {
  374.         $this->cart_total_otax_fixed $cart_total_otax_fixed;
  375.         return $this;
  376.     }
  377.     public function getCartTotalTax(): ?float
  378.     {
  379.         return $this->cart_total_tax;
  380.     }
  381.     public function setCartTotalTax(?float $cart_total_tax): self
  382.     {
  383.         $this->cart_total_tax $cart_total_tax;
  384.         return $this;
  385.     }
  386.     public function getCartTotalTaxFixed(): ?float
  387.     {
  388.         return $this->cart_total_tax_fixed;
  389.     }
  390.     public function setCartTotalTaxFixed(?float $cart_total_tax_fixed): self
  391.     {
  392.         $this->cart_total_tax_fixed $cart_total_tax_fixed;
  393.         return $this;
  394.     }
  395.     public function getNumber(): ?int
  396.     {
  397.         return $this->number;
  398.     }
  399.     public function setNumber(?int $number): self
  400.     {
  401.         $this->number $number;
  402.         return $this;
  403.     }
  404.     public function getUuid()
  405.     {
  406.         return $this->uuid;
  407.     }
  408.     public function setUuid($uuid): self
  409.     {
  410.         $this->uuid $uuid;
  411.         return $this;
  412.     }
  413.     public function getCanceled(): ?bool
  414.     {
  415.         return $this->canceled;
  416.     }
  417.     public function setCanceled(?bool $canceled): self
  418.     {
  419.         $this->canceled $canceled;
  420.         return $this;
  421.     }
  422.     public function getReversalReceipt(): ?bool
  423.     {
  424.         return $this->reversal_receipt;
  425.     }
  426.     public function setReversalReceipt(?bool $reversal_receipt): self
  427.     {
  428.         $this->reversal_receipt $reversal_receipt;
  429.         return $this;
  430.     }
  431.     /**
  432.      * @return Collection<int, ReceiptCustomer>
  433.      */
  434.     public function getReceiptCustomers(): Collection
  435.     {
  436.         return $this->receiptCustomers;
  437.     }
  438.     public function addReceiptCustomer(ReceiptCustomer $receiptCustomer): self
  439.     {
  440.         if (!$this->receiptCustomers->contains($receiptCustomer)) {
  441.             $this->receiptCustomers[] = $receiptCustomer;
  442.             $receiptCustomer->setReceipt($this);
  443.         }
  444.         return $this;
  445.     }
  446.     public function removeReceiptCustomer(ReceiptCustomer $receiptCustomer): self
  447.     {
  448.         if ($this->receiptCustomers->removeElement($receiptCustomer)) {
  449.             // set the owning side to null (unless already changed)
  450.             if ($receiptCustomer->getReceipt() === $this) {
  451.                 $receiptCustomer->setReceipt(null);
  452.             }
  453.         }
  454.         return $this;
  455.     }
  456.     /**
  457.      * @return Collection<int, ReceiptCustomerAddress>
  458.      */
  459.     public function getReceiptCustomerAddresses(): Collection
  460.     {
  461.         return $this->receiptCustomerAddresses;
  462.     }
  463.     public function addReceiptCustomerAddress(ReceiptCustomerAddress $receiptCustomerAddress): self
  464.     {
  465.         if (!$this->receiptCustomerAddresses->contains($receiptCustomerAddress)) {
  466.             $this->receiptCustomerAddresses[] = $receiptCustomerAddress;
  467.             $receiptCustomerAddress->setReceipt($this);
  468.         }
  469.         return $this;
  470.     }
  471.     public function removeReceiptCustomerAddress(ReceiptCustomerAddress $receiptCustomerAddress): self
  472.     {
  473.         if ($this->receiptCustomerAddresses->removeElement($receiptCustomerAddress)) {
  474.             // set the owning side to null (unless already changed)
  475.             if ($receiptCustomerAddress->getReceipt() === $this) {
  476.                 $receiptCustomerAddress->setReceipt(null);
  477.             }
  478.         }
  479.         return $this;
  480.     }
  481.     /**
  482.      * @return Collection<int, ReceiptCustomerGroup>
  483.      */
  484.     public function getReceiptCustomerGroups(): Collection
  485.     {
  486.         return $this->receiptCustomerGroups;
  487.     }
  488.     public function addReceiptCustomerGroup(ReceiptCustomerGroup $receiptCustomerGroup): self
  489.     {
  490.         if (!$this->receiptCustomerGroups->contains($receiptCustomerGroup)) {
  491.             $this->receiptCustomerGroups[] = $receiptCustomerGroup;
  492.             $receiptCustomerGroup->setReceipt($this);
  493.         }
  494.         return $this;
  495.     }
  496.     public function removeReceiptCustomerGroup(ReceiptCustomerGroup $receiptCustomerGroup): self
  497.     {
  498.         if ($this->receiptCustomerGroups->removeElement($receiptCustomerGroup)) {
  499.             // set the owning side to null (unless already changed)
  500.             if ($receiptCustomerGroup->getReceipt() === $this) {
  501.                 $receiptCustomerGroup->setReceipt(null);
  502.             }
  503.         }
  504.         return $this;
  505.     }
  506.     /**
  507.      * @return Collection<int, ReceiptDiscount>
  508.      */
  509.     public function getReceiptDiscounts(): Collection
  510.     {
  511.         return $this->receiptDiscounts;
  512.     }
  513.     public function addReceiptDiscount(ReceiptDiscount $receiptDiscount): self
  514.     {
  515.         if (!$this->receiptDiscounts->contains($receiptDiscount)) {
  516.             $this->receiptDiscounts[] = $receiptDiscount;
  517.             $receiptDiscount->setReceipt($this);
  518.         }
  519.         return $this;
  520.     }
  521.     public function removeReceiptDiscount(ReceiptDiscount $receiptDiscount): self
  522.     {
  523.         if ($this->receiptDiscounts->removeElement($receiptDiscount)) {
  524.             // set the owning side to null (unless already changed)
  525.             if ($receiptDiscount->getReceipt() === $this) {
  526.                 $receiptDiscount->setReceipt(null);
  527.             }
  528.         }
  529.         return $this;
  530.     }
  531.     /**
  532.      * @return Collection<int, ReceiptPrice>
  533.      */
  534.     public function getReceiptPrices(): Collection
  535.     {
  536.         return $this->receiptPrices;
  537.     }
  538.     public function addReceiptPrice(ReceiptPrice $receiptPrice): self
  539.     {
  540.         if (!$this->receiptPrices->contains($receiptPrice)) {
  541.             $this->receiptPrices[] = $receiptPrice;
  542.             $receiptPrice->setReceipt($this);
  543.         }
  544.         return $this;
  545.     }
  546.     public function removeReceiptPrice(ReceiptPrice $receiptPrice): self
  547.     {
  548.         if ($this->receiptPrices->removeElement($receiptPrice)) {
  549.             // set the owning side to null (unless already changed)
  550.             if ($receiptPrice->getReceipt() === $this) {
  551.                 $receiptPrice->setReceipt(null);
  552.             }
  553.         }
  554.         return $this;
  555.     }
  556.     /**
  557.      * @return Collection<int, ReceiptPriceGroup>
  558.      */
  559.     public function getReceiptPriceGroups(): Collection
  560.     {
  561.         return $this->receiptPriceGroups;
  562.     }
  563.     public function addReceiptPriceGroup(ReceiptPriceGroup $receiptPriceGroup): self
  564.     {
  565.         if (!$this->receiptPriceGroups->contains($receiptPriceGroup)) {
  566.             $this->receiptPriceGroups[] = $receiptPriceGroup;
  567.             $receiptPriceGroup->setReceipt($this);
  568.         }
  569.         return $this;
  570.     }
  571.     public function removeReceiptPriceGroup(ReceiptPriceGroup $receiptPriceGroup): self
  572.     {
  573.         if ($this->receiptPriceGroups->removeElement($receiptPriceGroup)) {
  574.             // set the owning side to null (unless already changed)
  575.             if ($receiptPriceGroup->getReceipt() === $this) {
  576.                 $receiptPriceGroup->setReceipt(null);
  577.             }
  578.         }
  579.         return $this;
  580.     }
  581.     /**
  582.      * @return Collection<int, ReceiptProduct>
  583.      */
  584.     public function getReceiptProducts(): Collection
  585.     {
  586.         return $this->receiptProducts;
  587.     }
  588.     public function addReceiptProduct(ReceiptProduct $receiptProduct): self
  589.     {
  590.         if (!$this->receiptProducts->contains($receiptProduct)) {
  591.             $this->receiptProducts[] = $receiptProduct;
  592.             $receiptProduct->setReceipt($this);
  593.         }
  594.         return $this;
  595.     }
  596.     public function removeReceiptProduct(ReceiptProduct $receiptProduct): self
  597.     {
  598.         if ($this->receiptProducts->removeElement($receiptProduct)) {
  599.             // set the owning side to null (unless already changed)
  600.             if ($receiptProduct->getReceipt() === $this) {
  601.                 $receiptProduct->setReceipt(null);
  602.             }
  603.         }
  604.         return $this;
  605.     }
  606.     /**
  607.      * @return Collection<int, ReceiptScalePrice>
  608.      */
  609.     public function getReceiptScalePrices(): Collection
  610.     {
  611.         return $this->receiptScalePrices;
  612.     }
  613.     public function addReceiptScalePrice(ReceiptScalePrice $receiptScalePrice): self
  614.     {
  615.         if (!$this->receiptScalePrices->contains($receiptScalePrice)) {
  616.             $this->receiptScalePrices[] = $receiptScalePrice;
  617.             $receiptScalePrice->setReceipt($this);
  618.         }
  619.         return $this;
  620.     }
  621.     public function removeReceiptScalePrice(ReceiptScalePrice $receiptScalePrice): self
  622.     {
  623.         if ($this->receiptScalePrices->removeElement($receiptScalePrice)) {
  624.             // set the owning side to null (unless already changed)
  625.             if ($receiptScalePrice->getReceipt() === $this) {
  626.                 $receiptScalePrice->setReceipt(null);
  627.             }
  628.         }
  629.         return $this;
  630.     }
  631.     /**
  632.      * @return Collection<int, ReceiptTax>
  633.      */
  634.     public function getReceiptTaxes(): Collection
  635.     {
  636.         return $this->receiptTaxes;
  637.     }
  638.     public function addReceiptTax(ReceiptTax $receiptTax): self
  639.     {
  640.         if (!$this->receiptTaxes->contains($receiptTax)) {
  641.             $this->receiptTaxes[] = $receiptTax;
  642.             $receiptTax->setReceipt($this);
  643.         }
  644.         return $this;
  645.     }
  646.     public function removeReceiptTax(ReceiptTax $receiptTax): self
  647.     {
  648.         if ($this->receiptTaxes->removeElement($receiptTax)) {
  649.             // set the owning side to null (unless already changed)
  650.             if ($receiptTax->getReceipt() === $this) {
  651.                 $receiptTax->setReceipt(null);
  652.             }
  653.         }
  654.         return $this;
  655.     }
  656.     /**
  657.      * @return Collection<int, ReceiptUnit>
  658.      */
  659.     public function getReceiptUnits(): Collection
  660.     {
  661.         return $this->receiptUnits;
  662.     }
  663.     public function addReceiptUnit(ReceiptUnit $receiptUnit): self
  664.     {
  665.         if (!$this->receiptUnits->contains($receiptUnit)) {
  666.             $this->receiptUnits[] = $receiptUnit;
  667.             $receiptUnit->setReceipt($this);
  668.         }
  669.         return $this;
  670.     }
  671.     public function removeReceiptUnit(ReceiptUnit $receiptUnit): self
  672.     {
  673.         if ($this->receiptUnits->removeElement($receiptUnit)) {
  674.             // set the owning side to null (unless already changed)
  675.             if ($receiptUnit->getReceipt() === $this) {
  676.                 $receiptUnit->setReceipt(null);
  677.             }
  678.         }
  679.         return $this;
  680.     }
  681.     /**
  682.      * @return Collection<int, ReceiptUser>
  683.      */
  684.     public function getReceiptUsers(): Collection
  685.     {
  686.         return $this->receiptUsers;
  687.     }
  688.     public function addReceiptUser(ReceiptUser $receiptUser): self
  689.     {
  690.         if (!$this->receiptUsers->contains($receiptUser)) {
  691.             $this->receiptUsers[] = $receiptUser;
  692.             $receiptUser->setReceipt($this);
  693.         }
  694.         return $this;
  695.     }
  696.     public function removeReceiptUser(ReceiptUser $receiptUser): self
  697.     {
  698.         if ($this->receiptUsers->removeElement($receiptUser)) {
  699.             // set the owning side to null (unless already changed)
  700.             if ($receiptUser->getReceipt() === $this) {
  701.                 $receiptUser->setReceipt(null);
  702.             }
  703.         }
  704.         return $this;
  705.     }
  706.     /**
  707.      * @return Collection<int, ReceiptEmployeeGroup>
  708.      */
  709.     public function getReceiptEmployeeGroups(): Collection
  710.     {
  711.         return $this->receiptEmployeeGroups;
  712.     }
  713.     public function addReceiptEmployeeGroup(ReceiptEmployeeGroup $receiptEmployeeGroup): self
  714.     {
  715.         if (!$this->receiptEmployeeGroups->contains($receiptEmployeeGroup)) {
  716.             $this->receiptEmployeeGroups[] = $receiptEmployeeGroup;
  717.             $receiptEmployeeGroup->setReceipt($this);
  718.         }
  719.         return $this;
  720.     }
  721.     public function removeReceiptEmployeeGroup(ReceiptEmployeeGroup $receiptEmployeeGroup): self
  722.     {
  723.         if ($this->receiptEmployeeGroups->removeElement($receiptEmployeeGroup)) {
  724.             // set the owning side to null (unless already changed)
  725.             if ($receiptEmployeeGroup->getReceipt() === $this) {
  726.                 $receiptEmployeeGroup->setReceipt(null);
  727.             }
  728.         }
  729.         return $this;
  730.     }
  731.     /**
  732.      * @return Collection<int, ReceiptCartProduct>
  733.      */
  734.     public function getReceiptCartProducts(): Collection
  735.     {
  736.         return $this->receiptCartProducts;
  737.     }
  738.     public function addReceiptCartProduct(ReceiptCartProduct $receiptCartProduct): self
  739.     {
  740.         if (!$this->receiptCartProducts->contains($receiptCartProduct)) {
  741.             $this->receiptCartProducts[] = $receiptCartProduct;
  742.             $receiptCartProduct->setReceipt($this);
  743.         }
  744.         return $this;
  745.     }
  746.     public function removeReceiptCartProduct(ReceiptCartProduct $receiptCartProduct): self
  747.     {
  748.         if ($this->receiptCartProducts->removeElement($receiptCartProduct)) {
  749.             // set the owning side to null (unless already changed)
  750.             if ($receiptCartProduct->getReceipt() === $this) {
  751.                 $receiptCartProduct->setReceipt(null);
  752.             }
  753.         }
  754.         return $this;
  755.     }
  756.     /**
  757.      * @return Collection<int, ReceiptDocument>
  758.      */
  759.     public function getReceiptDocuments(): Collection
  760.     {
  761.         return $this->receiptDocuments;
  762.     }
  763.     public function addReceiptDocument(ReceiptDocument $receiptDocument): self
  764.     {
  765.         if (!$this->receiptDocuments->contains($receiptDocument)) {
  766.             $this->receiptDocuments[] = $receiptDocument;
  767.             $receiptDocument->setReceipt($this);
  768.         }
  769.         return $this;
  770.     }
  771.     public function removeReceiptDocument(ReceiptDocument $receiptDocument): self
  772.     {
  773.         if ($this->receiptDocuments->removeElement($receiptDocument)) {
  774.             // set the owning side to null (unless already changed)
  775.             if ($receiptDocument->getReceipt() === $this) {
  776.                 $receiptDocument->setReceipt(null);
  777.             }
  778.         }
  779.         return $this;
  780.     }
  781.     /**
  782.      * @return Collection<int, FiskalyTransaction>
  783.      */
  784.     public function getFiskalyTransactions(): Collection
  785.     {
  786.         return $this->fiskalyTransactions;
  787.     }
  788.     public function addFiskalyTransaction(FiskalyTransaction $fiskalyTransaction): self
  789.     {
  790.         if (!$this->fiskalyTransactions->contains($fiskalyTransaction)) {
  791.             $this->fiskalyTransactions[] = $fiskalyTransaction;
  792.             $fiskalyTransaction->setReceipt($this);
  793.         }
  794.         return $this;
  795.     }
  796.     public function removeFiskalyTransaction(FiskalyTransaction $fiskalyTransaction): self
  797.     {
  798.         if ($this->fiskalyTransactions->removeElement($fiskalyTransaction)) {
  799.             // set the owning side to null (unless already changed)
  800.             if ($fiskalyTransaction->getReceipt() === $this) {
  801.                 $fiskalyTransaction->setReceipt(null);
  802.             }
  803.         }
  804.         return $this;
  805.     }
  806.     /**
  807.      * @return Collection<int, ReceiptTransaction>
  808.      */
  809.     public function getReceiptTransactions(): Collection
  810.     {
  811.         return $this->receiptTransactions;
  812.     }
  813.     public function addReceiptTransaction(ReceiptTransaction $receiptTransaction): self
  814.     {
  815.         if (!$this->receiptTransactions->contains($receiptTransaction)) {
  816.             $this->receiptTransactions[] = $receiptTransaction;
  817.             $receiptTransaction->setReceipt($this);
  818.         }
  819.         return $this;
  820.     }
  821.     public function removeReceiptTransaction(ReceiptTransaction $receiptTransaction): self
  822.     {
  823.         if ($this->receiptTransactions->removeElement($receiptTransaction)) {
  824.             // set the owning side to null (unless already changed)
  825.             if ($receiptTransaction->getReceipt() === $this) {
  826.                 $receiptTransaction->setReceipt(null);
  827.             }
  828.         }
  829.         return $this;
  830.     }
  831.     /**
  832.      * @return Collection<int, ReceiptContraAccount>
  833.      */
  834.     public function getReceiptContraAccounts(): Collection
  835.     {
  836.         return $this->receiptContraAccounts;
  837.     }
  838.     public function addReceiptContraAccount(ReceiptContraAccount $receiptContraAccount): self
  839.     {
  840.         if (!$this->receiptContraAccounts->contains($receiptContraAccount)) {
  841.             $this->receiptContraAccounts[] = $receiptContraAccount;
  842.             $receiptContraAccount->setReceipt($this);
  843.         }
  844.         return $this;
  845.     }
  846.     public function removeReceiptContraAccount(ReceiptContraAccount $receiptContraAccount): self
  847.     {
  848.         if ($this->receiptContraAccounts->removeElement($receiptContraAccount)) {
  849.             // set the owning side to null (unless already changed)
  850.             if ($receiptContraAccount->getReceipt() === $this) {
  851.                 $receiptContraAccount->setReceipt(null);
  852.             }
  853.         }
  854.         return $this;
  855.     }
  856.     /**
  857.      * @return Collection<int, Reversal>
  858.      */
  859.     public function getReversals(): Collection
  860.     {
  861.         return $this->reversals;
  862.     }
  863.     public function addReversal(Reversal $reversal): self
  864.     {
  865.         if (!$this->reversals->contains($reversal)) {
  866.             $this->reversals[] = $reversal;
  867.             $reversal->setReceipt($this);
  868.         }
  869.         return $this;
  870.     }
  871.     public function removeReversal(Reversal $reversal): self
  872.     {
  873.         if ($this->reversals->removeElement($reversal)) {
  874.             // set the owning side to null (unless already changed)
  875.             if ($reversal->getReceipt() === $this) {
  876.                 $reversal->setReceipt(null);
  877.             }
  878.         }
  879.         return $this;
  880.     }
  881.     /**
  882.      * @return Collection<int, Reversal>
  883.      */
  884.     public function getReversalReceiptReversals(): Collection
  885.     {
  886.         return $this->reversal_receipt_reversals;
  887.     }
  888.     public function addReversalReceiptReversal(Reversal $reversalReceiptReversal): self
  889.     {
  890.         if (!$this->reversal_receipt_reversals->contains($reversalReceiptReversal)) {
  891.             $this->reversal_receipt_reversals[] = $reversalReceiptReversal;
  892.             $reversalReceiptReversal->setReversalReceipt($this);
  893.         }
  894.         return $this;
  895.     }
  896.     public function removeReversalReceiptReversal(Reversal $reversalReceiptReversal): self
  897.     {
  898.         if ($this->reversal_receipt_reversals->removeElement($reversalReceiptReversal)) {
  899.             // set the owning side to null (unless already changed)
  900.             if ($reversalReceiptReversal->getReversalReceipt() === $this) {
  901.                 $reversalReceiptReversal->setReversalReceipt(null);
  902.             }
  903.         }
  904.         return $this;
  905.     }
  906.     public function getReceiptCashbox(): ?ReceiptCashbox
  907.     {
  908.         return $this->receiptCashbox;
  909.     }
  910.     public function setReceiptCashbox(?ReceiptCashbox $receiptCashbox): self
  911.     {
  912.         $this->receiptCashbox $receiptCashbox;
  913.         return $this;
  914.     }
  915.     public function getReceiptLocation(): ?ReceiptLocation
  916.     {
  917.         return $this->receiptLocation;
  918.     }
  919.     public function setReceiptLocation(?ReceiptLocation $receiptLocation): self
  920.     {
  921.         $this->receiptLocation $receiptLocation;
  922.         return $this;
  923.     }
  924.     public function getReceiptEmployee(): ?ReceiptEmployee
  925.     {
  926.         return $this->receiptEmployee;
  927.     }
  928.     public function setReceiptEmployee(?ReceiptEmployee $receiptEmployee): self
  929.     {
  930.         $this->receiptEmployee $receiptEmployee;
  931.         return $this;
  932.     }
  933.     public function getCustomer(): ?Customer
  934.     {
  935.         return $this->customer;
  936.     }
  937.     public function setCustomer(?Customer $customer): self
  938.     {
  939.         $this->customer $customer;
  940.         return $this;
  941.     }
  942.     public function getCustomerAddress(): ?CustomerAddress
  943.     {
  944.         return $this->customerAddress;
  945.     }
  946.     public function setCustomerAddress(?CustomerAddress $customerAddress): self
  947.     {
  948.         $this->customerAddress $customerAddress;
  949.         return $this;
  950.     }
  951.     public function getDailyFinancialStatement(): ?DailyFinancialStatement
  952.     {
  953.         return $this->dailyFinancialStatement;
  954.     }
  955.     public function setDailyFinancialStatement(?DailyFinancialStatement $dailyFinancialStatement): self
  956.     {
  957.         $this->dailyFinancialStatement $dailyFinancialStatement;
  958.         return $this;
  959.     }
  960.     /**
  961.      * @return Collection<int, FiskalyReceiptType>
  962.      */
  963.     public function getFiskalyReceiptTypes(): Collection
  964.     {
  965.         return $this->fiskalyReceiptTypes;
  966.     }
  967.     public function addFiskalyReceiptType(FiskalyReceiptType $fiskalyReceiptType): self
  968.     {
  969.         if (!$this->fiskalyReceiptTypes->contains($fiskalyReceiptType)) {
  970.             $this->fiskalyReceiptTypes[] = $fiskalyReceiptType;
  971.             $fiskalyReceiptType->addReceipt($this);
  972.         }
  973.         return $this;
  974.     }
  975.     public function removeFiskalyReceiptType(FiskalyReceiptType $fiskalyReceiptType): self
  976.     {
  977.         if ($this->fiskalyReceiptTypes->removeElement($fiskalyReceiptType)) {
  978.             $fiskalyReceiptType->removeReceipt($this);
  979.         }
  980.         return $this;
  981.     }
  982. }