<?php
namespace App\Containers\CrmSection\ContractContainer\Entities;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Delete;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\GetCollection;
use ApiPlatform\Metadata\Patch;
use ApiPlatform\Metadata\Put;
use ApiPlatform\Metadata\Post;
use ApiPlatform\Metadata\ApiFilter;
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Doctrine\Orm\Filter\NumericFilter;
use ApiPlatform\Doctrine\Orm\Filter\RangeFilter;
use ApiPlatform\Doctrine\Orm\Filter\DateFilter;
use ApiPlatform\Doctrine\Orm\Filter\BooleanFilter;
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\DBAL\Types\Types;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Serializer\Annotation\MaxDepth;
use Symfony\Component\Serializer\Annotation\Context;
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
use App\Containers\CrmSection\ContractContainer\Data\Repositories\ContractRepository;
use App\Containers\CrmSection\ClientContainer\Entities\ClientEntity;
use App\Containers\CrmSection\CarContainer\Entities\CarEntity;
use App\Containers\SettingSection\ListContainer\Entities\InsuranceProductEntity;
use App\Containers\SettingSection\PartnerContainer\Entities\PartnerEntity;
use App\Containers\SettingSection\ListContainer\Entities\FuelTypeEntity;
use App\Containers\SettingSection\ListContainer\Entities\CarTypeEntity;
use App\Containers\SettingSection\ListContainer\Entities\CarBrandEntity;
use App\Containers\SettingSection\ListContainer\Entities\CarModelEntity;
use App\Containers\SettingSection\ListContainer\Entities\SourceEntity;
use App\Containers\SettingSection\ListContainer\Entities\StatusEntity;
use App\Containers\SettingSection\ListContainer\Entities\CarUsageTypeEntity;
use App\Containers\SettingSection\ListContainer\Entities\CarUsageReasonEntity;
use App\Containers\CrmSection\CalculationContainer\Entities\CalculationEntity;
use App\Containers\CrmSection\PrintablesContainer\Entities\PrintableEntity;
use App\Containers\CrmSection\IndexContainer\Entities\TranslationEntity;
use App\Ship\ApiPlatform\Filter\SimpleSearchFilter;
/**
* Договор
*/
#[ApiResource(
routePrefix: '/crm',
normalizationContext: [
'groups' => 'read',
'enable_max_depth' => true
],
operations: [
new Get(
uriTemplate: '/contracts/{id}', requirements: ['id' => '\d+'],
security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_CLIENT') or is_granted('ROLE_READONLY')"
),
new Patch(
uriTemplate: '/contracts/{id}', requirements: ['id' => '\d+'],
security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_CLIENT')"
),
// new Put(
// uriTemplate: '/contracts/{id}', requirements: ['id' => '\d+'],
// security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_CLIENT')"
// ),
// new Delete(
// uriTemplate: '/contracts/{id}', requirements: ['id' => '\d+'],
// security: "is_granted('ROLE_ADMIN')"
// ),
// new Post(
// uriTemplate: '/contracts',
// security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_CLIENT')"
// ),
new GetCollection(
uriTemplate: '/contracts',
security: "is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_CLIENT') or is_granted('ROLE_READONLY')"
),
],
shortName: 'CRM_Contracts'
)]
#[ApiFilter(SearchFilter::class, properties: [
'id' => 'exact',
'number' => 'partial',
'carNumber' => 'partial',
'carVIN' => 'partial',
'externalCode' => 'partial',
'carColor' => 'exact',
'status' => 'exact',
'state' => 'exact',
'client' => 'exact',
'car' => 'exact',
'insuranceProduct' => 'exact',
'carUsageType' => 'exact',
'carUsageReason' => 'exact',
'calculation' => 'exact',
'carFuelType' => 'exact',
'carType' => 'exact',
'carBrand' => 'exact',
'carModel' => 'exact',
'mainContract' => 'exact',
'client.name' => 'partial',
'client.lastName' => 'partial',
'client.patronymic' => 'partial',
'client.externalCode' => 'partial',
'client.phone' => 'exact',
'client.email' => 'exact',
'client.inn' => 'exact',
'partner' => 'exact',
'insuranceProduct.name' => 'exact',
'insuranceProduct.code' => 'exact',
'carBrand.name' => 'exact',
'carBrand.codeAutoria' => 'exact',
'carModel.name' => 'exact',
'carModel.codeAutoria' => 'exact',
'status.name' => 'exact',
'status.externalCode' => 'exact',
'source.name' => 'exact',
'source.externalCode' => 'exact'
])]
#[ApiFilter(NumericFilter::class, properties: ['id', 'dateProduction', 'rating', 'ratingReport'])]
#[ApiFilter(RangeFilter::class, properties: ['id', 'priceUAH', 'carPriceUSD', 'carPriceUAH', 'dateProduction', 'carEngineVolume', 'rating', 'ratingReport', 'prolongationBalanceKilometers', 'prolongationAdditionalCoefficientKilometers', 'currentBalanceKilometers'])]
#[ApiFilter(BooleanFilter::class, properties: ['isProlongation', 'isActiveMainContract', 'isPaid', 'isSentTo1C', 'isForbidProlongation', 'isNotCheckOSCPV', 'isHide'])]
#[ApiFilter(DateFilter::class, properties: ['dateStart', 'dateEnd', 'dateConclusionContract', 'dateSigningContract', 'dateSigningAct'])]
#[ApiFilter(OrderFilter::class)]
#[ApiFilter(filterClass: SimpleSearchFilter::class, properties: [
'number', 'carNumber', 'carVIN', 'externalCode'
])]
#[ORM\Entity(repositoryClass: ContractRepository::class)]
#[ORM\Table(name: '`crm_contracts`')]
#[ORM\Index(columns: ['number', 'car_number'], name: 'crm_contracts_custom_idx')]
#[Gedmo\TranslationEntity(class: TranslationEntity::class)]
class ContractEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: Types::INTEGER)]
#[Groups(['read'])]
private ?int $id = null;
#[ORM\Column(type: Types::STRING, length: 255, nullable: true, unique: true)]
#[Groups(['read'])]
private ?string $externalCode = null;
// Номер договора
#[ORM\Column(type: Types::STRING, length: 50, nullable: true, unique: true)]
#[Groups(['read'])]
private ?string $number = null;
// Статус
#[ORM\ManyToOne(targetEntity: StatusEntity::class)]
#[ORM\JoinColumn(name: 'status_id', referencedColumnName: 'id', nullable: false)]
#[Groups(['read'])]
#[MaxDepth(1)]
private StatusEntity $status;
// Состояние
#[Groups(['read'])]
#[MaxDepth(1)]
public ?StatusEntity $state = null;
// Клиент
#[ORM\ManyToOne(targetEntity: ClientEntity::class)]
#[ORM\JoinColumn(name: 'client_id', referencedColumnName: 'id', nullable: false)]
#[Groups(['read'])]
#[MaxDepth(2)]
private ClientEntity $client;
// Страховой продукт
#[ORM\ManyToOne(targetEntity: InsuranceProductEntity::class)]
#[ORM\JoinColumn(name: 'insurance_product_id', referencedColumnName: 'id', nullable: false)]
#[Groups(['read'])]
#[MaxDepth(1)]
private InsuranceProductEntity $insuranceProduct;
// Партнер
#[ORM\ManyToOne(targetEntity: PartnerEntity::class)]
#[ORM\JoinColumn(name: 'partner_id', referencedColumnName: 'id', onDelete: 'SET NULL')]
#[Groups(['read'])]
#[MaxDepth(1)]
private ?PartnerEntity $partner;
// Типы использования транспорта
#[ORM\ManyToOne(targetEntity: CarUsageTypeEntity::class)]
#[ORM\JoinColumn(name: 'car_usage_type_id', referencedColumnName: 'id', nullable: false)]
#[Groups(['read'])]
#[MaxDepth(1)]
private CarUsageTypeEntity $carUsageType;
// Основания использования транспорта
#[ORM\ManyToOne(targetEntity: CarUsageReasonEntity::class)]
#[ORM\JoinColumn(name: 'car_usage_reason_id', referencedColumnName: 'id', nullable: false)]
#[Groups(['read'])]
#[MaxDepth(1)]
private CarUsageReasonEntity $carUsageReason;
// Расчёт
#[ORM\ManyToOne(targetEntity: CalculationEntity::class)]
#[ORM\JoinColumn(name: 'calculation_id', referencedColumnName: 'id', nullable: false)]
#[Groups(['read'])]
#[MaxDepth(2)]
private CalculationEntity $calculation;
// Стоимость в ГРН
#[ORM\Column(type: Types::FLOAT, scale: 3, nullable: false)]
#[Groups(['read'])]
private float $priceUAH;
// Стоимость дополнительного километра в ГРН
#[ORM\Column(type: Types::FLOAT, scale: 3, nullable: false)]
#[Groups(['read'])]
private float $costAdditionalKilometerUAH;
// Оценка вождения автомобилем
#[ORM\Column(type: Types::FLOAT, scale: 2, nullable: true, options: ['default' => 0.00])]
#[Groups(['read'])]
private ?float $rating = 0.00;
#[ORM\Column(type: Types::FLOAT, scale: 2, nullable: true, options: ['default' => 0.00])]
#[Groups(['read'])]
private ?float $ratingReport = 0.00;
// Номер авто
#[ORM\Column(type: Types::STRING, length: 50, nullable: false)]
#[Groups(['read'])]
private string $carNumber;
// Год выпуска
#[ORM\Column(type: Types::INTEGER, length: 4, nullable: false)]
#[Groups(['read'])]
private int $dateProduction;
// Стоимость авто в USD
#[ORM\Column(type: Types::INTEGER, nullable: false)]
#[Groups(['read'])]
private int $carPriceUSD;
// Стоимость авто в ГРН
#[ORM\Column(type: Types::INTEGER, nullable: true)]
#[Groups(['read'])]
private ?int $carPriceUAH = null;
// Объем двигателя
#[ORM\Column(type: Types::FLOAT, scale: 3, nullable: true)]
#[Groups(['read'])]
private ?float $carEngineVolume = null;
// Тип топлива
#[ORM\ManyToOne(targetEntity: FuelTypeEntity::class)]
#[ORM\JoinColumn(name: 'car_fuel_type_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(1)]
private ?FuelTypeEntity $carFuelType = null;
// Тип транспорта
#[ORM\ManyToOne(targetEntity: CarTypeEntity::class)]
#[ORM\JoinColumn(name: 'car_type_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(1)]
private ?CarTypeEntity $carType = null;
// Цвет
#[ORM\Column(type: Types::STRING, length: 150, nullable: true)]
#[Gedmo\Translatable]
#[Groups(['read'])]
private ?string $carColor = null;
// VIN
#[ORM\Column(type: Types::STRING, length: 150, nullable: true)]
#[Groups(['read'])]
private ?string $carVIN = null;
// Марка
#[ORM\ManyToOne(targetEntity: CarBrandEntity::class)]
#[ORM\JoinColumn(name: 'car_brand_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(1)]
private ?CarBrandEntity $carBrand = null;
// Модель
#[ORM\ManyToOne(targetEntity: CarModelEntity::class)]
#[ORM\JoinColumn(name: 'car_model_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(1)]
private ?CarModelEntity $carModel = null;
// Дата начала действия
#[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)]
#[Context(
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'],
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d']
)]
#[Groups(['read'])]
private ?\DateTimeInterface $dateStart = null;
// Дата окончания действия
#[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)]
#[Context(
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d'],
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d']
)]
#[Groups(['read'])]
private ?\DateTimeInterface $dateEnd = null;
// Дата заключения договора
#[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)]
#[Context(
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s'],
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s']
)]
#[Groups(['read'])]
private ?\DateTimeInterface $dateConclusionContract = null;
// Пролонгация
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isProlongation = false;
// Основновной договор при пролонгации
#[ORM\ManyToOne(targetEntity: ContractEntity::class)]
#[ORM\JoinColumn(name: 'main_contract_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(2)]
private ?ContractEntity $mainContract = null;
// Активность основной сделки при пролонгации
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isActiveMainContract = false;
// Пролонговано
#[Groups(['read'])]
public bool $isProlonged = false;
// Количество бонусов
#[Groups(['read'])]
public ?int $bonuses = 0;
// Количество оплаченных километров
#[Groups(['read'])]
public ?float $paidKilometers = 0.00;
// Пробег
#[Groups(['read'])]
public ?float $mileage = 0.00;
// Остаток километров
#[Groups(['read'])]
public ?float $remainingKilometers = 0.00;
// Лимит КМ
#[ORM\Column(type: Types::INTEGER, nullable: false)]
#[Groups(['read'])]
private ?int $limitKilometers = null;
// Остаток КМ при пролонгации
#[ORM\Column(type: Types::INTEGER, nullable: true)]
#[Groups(['read'])]
private ?int $prolongationBalanceKilometers = 0;
#[ORM\Column(type: Types::FLOAT, scale: 3, nullable: true)]
#[Groups(['read'])]
private ?float $prolongationAdditionalCoefficientKilometers = null;
// Текущий остаток КМ
#[ORM\Column(type: Types::INTEGER, nullable: true)]
#[Groups(['read'])]
private ?int $currentBalanceKilometers = 0;
// Печатная форма
#[Groups(['read'])]
public ?PrintableEntity $printable = null;
// Источник
#[ORM\ManyToOne(targetEntity: SourceEntity::class)]
#[ORM\JoinColumn(name: 'source_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(1)]
private ?SourceEntity $source = null;
// Код подписи договора
#[ORM\Column(type: Types::STRING, length: 100, nullable: true)]
#[Groups(['read'])]
private ?string $codeSigningContract = null;
// Дата подписи договора
#[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)]
#[Context(
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s'],
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s']
)]
#[Groups(['read'])]
private ?\DateTimeInterface $dateSigningContract = null;
// Код подписи акта
#[ORM\Column(type: Types::STRING, length: 100, nullable: true)]
#[Groups(['read'])]
private ?string $codeSigningAct = null;
// Дата подписи акта
#[ORM\Column(type: Types::DATETIME_IMMUTABLE, nullable: true)]
#[Context(
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s'],
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s']
)]
#[Groups(['read'])]
private ?\DateTimeInterface $dateSigningAct = null;
// Договор оплачен
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isPaid = false;
// Отправлен в 1С
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isSentTo1C = false;
// Ошибка при отправке в 1С
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
#[Groups(['read'])]
private ?string $errorSentTo1C = null;
// Автомобиль
#[ORM\ManyToOne(targetEntity: CarEntity::class)]
#[ORM\JoinColumn(name: 'car_id', referencedColumnName: 'id', nullable: true)]
#[Groups(['read'])]
#[MaxDepth(2)]
private ?CarEntity $car = null;
// Трекер активен
#[Groups(['read'])]
public ?bool $trackerIsActive = null;
// Трекер заблокирован
#[Groups(['read'])]
public ?bool $trackerIsBlocked = null;
// Дата деактивации трекера
#[Context(
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s'],
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'Y-m-d H:i:s']
)]
#[Groups(['read'])]
public ?\DateTimeInterface $trackerDeactivationDate = null;
// Запрет пролонгации
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isForbidProlongation = false;
// Не проверять ОСАГО
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isNotCheckOSCPV = false;
// Скрыть
#[ORM\Column(type: Types::BOOLEAN)]
#[Groups(['read'])]
private ?bool $isHide = false;
#[Gedmo\Timestampable(on: 'create')]
#[ORM\Column(type: Types::DATETIME_IMMUTABLE)]
#[Groups(['read'])]
protected $createdAt;
#[Gedmo\Timestampable(on: 'update')]
#[ORM\Column(type: Types::DATETIME_IMMUTABLE)]
#[Groups(['read'])]
protected $updatedAt;
/**
* Used locale to override Translation listener`s locale
* this is not a mapped field of entity metadata, just a simple property
*/
#[Gedmo\Locale]
private $locale;
public function getId(): ?int
{
return $this->id;
}
public function getExternalCode()
{
return $this->externalCode;
}
public function setExternalCode($code)
{
$this->externalCode = $code;
return $this;
}
public function getNumber()
{
return $this->number;
}
public function setNumber($number)
{
$this->number = $number;
return $this;
}
public function getClient()
{
return $this->client;
}
public function setClient($client)
{
$this->client = $client;
return $this;
}
public function getInsuranceProduct()
{
return $this->insuranceProduct;
}
public function setInsuranceProduct($product)
{
$this->insuranceProduct = $product;
return $this;
}
public function getPartner()
{
return $this->partner;
}
public function setPartner(?PartnerEntity $partner)
{
$this->partner = $partner;
return $this;
}
public function getCalculation()
{
return $this->calculation;
}
public function setCalculation($calculation)
{
$this->calculation = $calculation;
return $this;
}
public function getCarUsageType()
{
return $this->carUsageType;
}
public function setCarUsageType($type)
{
$this->carUsageType = $type;
return $this;
}
public function getCarUsageReason()
{
return $this->carUsageReason;
}
public function setCarUsageReason($reason)
{
$this->carUsageReason = $reason;
return $this;
}
public function getPriceUAH()
{
return $this->priceUAH;
}
public function setPriceUAH($price)
{
$this->priceUAH = ($price !== null ? round($price, 3) : null);
return $this;
}
public function getCostAdditionalKilometerUAH()
{
return $this->costAdditionalKilometerUAH;
}
public function setCostAdditionalKilometerUAH($cost)
{
$this->costAdditionalKilometerUAH = ($cost !== null ? round($cost, 3) : null);
return $this;
}
public function getRating()
{
return $this->rating;
}
public function setRating($value)
{
$this->rating = ($value ? round($value, 2) : 0.00);
return $this;
}
public function getRatingReport()
{
return $this->ratingReport;
}
public function setRatingReport($value)
{
$this->ratingReport = ($value ? round($value, 2) : 0.00);
return $this;
}
public function getCarNumber()
{
return $this->carNumber;
}
public function setCarNumber($number)
{
$this->carNumber = ($number !== null ? str_replace(' ','', trim($number)) : null);
return $this;
}
public function setDateProduction($year)
{
$this->dateProduction = $year;
return $this;
}
public function getDateProduction()
{
return $this->dateProduction;
}
public function getCarBrand()
{
return $this->carBrand;
}
public function setCarBrand($brand)
{
$this->carBrand = $brand;
return $this;
}
public function getCarModel()
{
return $this->carModel;
}
public function setCarModel($model)
{
$this->carModel = $model;
return $this;
}
public function getCarPriceUSD()
{
return $this->carPriceUSD;
}
public function setCarPriceUSD($price)
{
$this->carPriceUSD = $price;
return $this;
}
public function getCarPriceUAH()
{
return $this->carPriceUAH;
}
public function setCarPriceUAH($price)
{
$this->carPriceUAH = $price;
return $this;
}
public function getCarEngineVolume()
{
return $this->carEngineVolume;
}
public function setCarEngineVolume($value)
{
$this->carEngineVolume = ($value !== null ? round($value, 3) : null);
return $this;
}
public function getCarFuelType()
{
return $this->carFuelType;
}
public function setCarFuelType($type)
{
$this->carFuelType = $type;
return $this;
}
public function getCarType()
{
return $this->carType;
}
public function setCarType($type)
{
$this->carType = $type;
return $this;
}
public function getCarColor()
{
return $this->carColor;
}
public function setCarColor($color)
{
$this->carColor = $color;
return $this;
}
public function getCarVIN()
{
return $this->carVIN;
}
public function setCarVIN($VIN)
{
$this->carVIN = $VIN;
return $this;
}
public function setDateStart(\DateTimeImmutable|null $date)
{
$this->dateStart = $date;
return $this;
}
public function getDateStart()
{
return $this->dateStart;
}
public function setDateEnd(\DateTimeImmutable|null $date)
{
$this->dateEnd = $date;
return $this;
}
public function getDateEnd()
{
return $this->dateEnd;
}
public function setDateConclusionContract(\DateTimeImmutable|null $date)
{
$this->dateConclusionContract = $date;
return $this;
}
public function getDateConclusionContract()
{
return $this->dateConclusionContract;
}
public function getStatus()
{
return $this->status;
}
public function setStatus($status)
{
$this->status = $status;
return $this;
}
public function getIsProlongation()
{
return $this->isProlongation;
}
public function setIsProlongation($value)
{
$this->isProlongation = $value;
return $this;
}
public function getMainContract()
{
return $this->mainContract;
}
public function setMainContract($contract)
{
$this->mainContract = $contract;
return $this;
}
public function getRootContract(): self
{
$contract = $this;
while (null !== $contract->getMainContract())
$contract = $contract->getMainContract();
return $contract;
}
public function getIsActiveMainContract()
{
return $this->isActiveMainContract;
}
public function setIsActiveMainContract($value)
{
$this->isActiveMainContract = $value;
return $this;
}
public function getLimitKilometers()
{
return $this->limitKilometers;
}
public function setLimitKilometers($kilometers)
{
$this->limitKilometers = $kilometers;
return $this;
}
public function getProlongationBalanceKilometers()
{
return $this->prolongationBalanceKilometers;
}
public function setProlongationBalanceKilometers($kilometers)
{
$this->prolongationBalanceKilometers = $kilometers;
return $this;
}
public function getProlongationAdditionalCoefficientKilometers()
{
return $this->prolongationAdditionalCoefficientKilometers;
}
public function setProlongationAdditionalCoefficientKilometers($value)
{
$this->prolongationAdditionalCoefficientKilometers = $value ? round($value, 3) : null;
return $this;
}
public function getCurrentBalanceKilometers()
{
return $this->currentBalanceKilometers;
}
public function setCurrentBalanceKilometers($kilometers)
{
$this->currentBalanceKilometers = $kilometers;
return $this;
}
public function getSource()
{
return $this->source;
}
public function setSource($source)
{
$this->source = $source;
return $this;
}
public function getIsPaid()
{
return $this->isPaid;
}
public function setIsPaid($value)
{
$this->isPaid = $value;
return $this;
}
public function getIsSentTo1C()
{
return $this->isSentTo1C;
}
public function setIsSentTo1C($value)
{
$this->isSentTo1C = $value;
return $this;
}
public function getErrorSentTo1C()
{
return $this->errorSentTo1C;
}
public function setErrorSentTo1C($error)
{
$this->errorSentTo1C = $error;
return $this;
}
public function getCodeSigningContract()
{
return $this->codeSigningContract;
}
public function setCodeSigningContract($code)
{
$this->codeSigningContract = $code;
return $this;
}
public function setDateSigningContract(\DateTimeImmutable|null $date)
{
$this->dateSigningContract = $date;
return $this;
}
public function getDateSigningContract()
{
return $this->dateSigningContract;
}
public function getCodeSigningAct()
{
return $this->codeSigningAct;
}
public function setCodeSigningAct($code)
{
$this->codeSigningAct = $code;
return $this;
}
public function setDateSigningAct(\DateTimeImmutable|null $date)
{
$this->dateSigningAct = $date;
return $this;
}
public function getDateSigningAct()
{
return $this->dateSigningAct;
}
public function getCar()
{
return $this->car;
}
public function setCar($car)
{
$this->car = $car;
return $this;
}
public function getIsForbidProlongation()
{
return $this->isForbidProlongation;
}
public function setIsForbidProlongation($value)
{
$this->isForbidProlongation = $value;
return $this;
}
public function getIsNotCheckOSCPV()
{
return $this->isNotCheckOSCPV;
}
public function setIsNotCheckOSCPV($value)
{
$this->isNotCheckOSCPV = $value;
return $this;
}
public function getIsHide()
{
return $this->isHide;
}
public function setIsHide($value)
{
$this->isHide = $value;
return $this;
}
public function getCreatedAt()
{
return $this->createdAt;
}
public function getUpdatedAt()
{
return $this->updatedAt;
}
public function setTranslatableLocale($locale)
{
$this->locale = $locale;
}
}