```
✨ 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:
35
migrations/Version20251105103144.php
Normal file
35
migrations/Version20251105103144.php
Normal 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');
|
||||
}
|
||||
}
|
||||
42
migrations/Version20251105105917.php
Normal file
42
migrations/Version20251105105917.php
Normal 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');
|
||||
}
|
||||
}
|
||||
31
migrations/Version20251105105927.php
Normal file
31
migrations/Version20251105105927.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user