Ajoute l'entité CustomerSplit et les services associés pour gérer les échéances de paiement des clients (PDF, envoi mail, etc.).
96 lines
1.8 KiB
PHP
96 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\CustomerSplitLineRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: CustomerSplitLineRepository::class)]
|
|
class CustomerSplitLine
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'customerSplitLines')]
|
|
private ?CustomerSplit $split = null;
|
|
|
|
#[ORM\Column]
|
|
private ?\DateTimeImmutable $datePrev = null;
|
|
|
|
#[ORM\Column]
|
|
private ?float $amount = null;
|
|
|
|
#[ORM\Column(length: 255)]
|
|
private ?string $state = null;
|
|
|
|
#[ORM\Column(length: 255,nullable: true)]
|
|
private ?string $paymentId = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getSplit(): ?CustomerSplit
|
|
{
|
|
return $this->split;
|
|
}
|
|
|
|
public function setSplit(?CustomerSplit $split): static
|
|
{
|
|
$this->split = $split;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDatePrev(): ?\DateTimeImmutable
|
|
{
|
|
return $this->datePrev;
|
|
}
|
|
|
|
public function setDatePrev(\DateTimeImmutable $datePrev): static
|
|
{
|
|
$this->datePrev = $datePrev;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getAmount(): ?float
|
|
{
|
|
return $this->amount;
|
|
}
|
|
|
|
public function setAmount(float $amount): static
|
|
{
|
|
$this->amount = $amount;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getState(): ?string
|
|
{
|
|
return $this->state;
|
|
}
|
|
|
|
public function setState(string $state): static
|
|
{
|
|
$this->state = $state;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getPaymentId(): ?string
|
|
{
|
|
return $this->paymentId;
|
|
}
|
|
|
|
public function setPaymentId(string $paymentId): static
|
|
{
|
|
$this->paymentId = $paymentId;
|
|
|
|
return $this;
|
|
}
|
|
}
|