Skip to content

Trésorerie: entités Doctrine Invoicing et InvoicingDetail - #2439

Open
vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:refacto/doctrine-accounting-4-entites-invoicing
Open

vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:refacto/doctrine-accounting-4-entites-invoicing

Conversation

@vgreb

@vgreb vgreb commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Ajout du mapping seul, sans toucher aux appelants : Ting reste en place et continue de servir les devis et les factures.

InvoicingRepository s'appuie sur InvoicingPeriodRepository, introduit avec la migration du journal.

@vgreb
vgreb force-pushed the refacto/doctrine-accounting-4-entites-invoicing branch from 43a85e0 to 3fc3f80 Compare October 27, 2026 21:01
Ajout du mapping seul, sans toucher aux appelants : Ting reste en place
et continue de servir les devis et les factures.

InvoicingRepository s'appuie sur InvoicingPeriodRepository, introduit
avec la migration du journal.
@vgreb
vgreb force-pushed the refacto/doctrine-accounting-4-entites-invoicing branch from 3fc3f80 to 5741baa Compare November 7, 2026 23:02
Comment on lines +24 to +25
#[ORM\Column(name: 'date_devis', nullable: true)]
public ?\DateTime $dateDevis = null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**suggestion : ** ajouter le type type: Types::DATE_MUTABLE(idem pour dateFacture et datePaiement)

#[ORM\Column]
public ?int $id = null;

#[ORM\Column(name: 'date_devis', nullable: true)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question : t'es sûr du nullable:true ?

Comment thread phpstan-baseline.php
'count' => 1,
'path' => __DIR__ . '/sources/Afup/Utils/Vat.php',
];
$ignoreErrors[] = [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨  Woot woot 🚨

On n'a pas le droit d'ajouter une baseline 😬

#[ORM\Column(name: 'date_devis', nullable: true)]
public ?\DateTime $dateDevis = null;

#[ORM\Column(name: 'numero_devis', nullable: true)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue : il manque la longueur de la colonne, non ?

#[ORM\Column(name: 'pu', type: 'float', nullable: false)]
public ?float $prixUnitaire = null;

#[Assert\NotBlank]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue : ce n'est pas cohérent avec le typage Doctrine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants