feat(src/Entity/CustomerAdvertPayment.php): Ajoute relation one-to-one avec AvisPaymentState
 feat(src/Controller): Crée ValidateAdvertController et template pour validation des avis
 feat(translations): Ajoute traduction pour renouvellement nom de domaine
 feat(templates): Ajoute lien vers validation des avis de paiement dans intranet
 feat(templates): Améliore formulaire prix avec champs dépot, renouvellement, rétablissement et gestion NDD
 feat(src/Command): Crée commande pour générer automatiquement les avis de paiement
 feat(src/Controller): Ajoute les custom price pour dépot, renouvellement, retablissement, gestion NDD
 feat(src/Repository): Ajoute une fonction pour recuperer les ndd expirant bientot
 feat(src/Controller): Affiche seulement les avis valider dans les factures client
 feat(src/Service): Ajoute fonction pour recuperer les ndd expirant bientot
```
This commit is contained in:
Serreau Jovann
2025-11-05 12:33:58 +01:00
parent 13b25efb41
commit 616bb107d3
16 changed files with 863 additions and 65 deletions

View File

@@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20251105103144 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE avis_payment_state (id SERIAL NOT NULL, avis_payment_id INT DEFAULT NULL, is_generated BOOLEAN NOT NULL, is_validated BOOLEAN NOT NULL, is_first_send BOOLEAN NOT NULL, is_second_send BOOLEAN NOT NULL, is_third_send BOOLEAN NOT NULL, is_final_send BOOLEAN NOT NULL, type VARCHAR(255) NOT NULL, target VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_D52826ABE8060482 ON avis_payment_state (avis_payment_id)');
$this->addSql('ALTER TABLE avis_payment_state ADD CONSTRAINT FK_D52826ABE8060482 FOREIGN KEY (avis_payment_id) REFERENCES customer_advert_payment (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE avis_payment_state DROP CONSTRAINT FK_D52826ABE8060482');
$this->addSql('DROP TABLE avis_payment_state');
}
}

View File

@@ -0,0 +1,42 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20251105105917 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE avis_payment_state ADD first_send_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL');
$this->addSql('ALTER TABLE avis_payment_state ADD second_send_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL');
$this->addSql('ALTER TABLE avis_payment_state ADD third_send_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL');
$this->addSql('ALTER TABLE avis_payment_state ADD final_send_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL');
$this->addSql('COMMENT ON COLUMN avis_payment_state.first_send_at IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('COMMENT ON COLUMN avis_payment_state.second_send_at IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('COMMENT ON COLUMN avis_payment_state.third_send_at IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('COMMENT ON COLUMN avis_payment_state.final_send_at IS \'(DC2Type:datetime_immutable)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE avis_payment_state DROP first_send_at');
$this->addSql('ALTER TABLE avis_payment_state DROP second_send_at');
$this->addSql('ALTER TABLE avis_payment_state DROP third_send_at');
$this->addSql('ALTER TABLE avis_payment_state DROP final_send_at');
}
}

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20251105105927 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
}
}