-
Notifications
You must be signed in to change notification settings - Fork 71
Refonte - Trésorerie > Journal > Ajout/Edition #2108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
72a30ee to
8d9992d
Compare
8d9992d to
d23e6d7
Compare
| * @return CollectionInterface<Event> | ||
| */ | ||
| public function getAllSortedByName(): CollectionInterface | ||
| public function getAllSortedByName($usedInAccountingJournal = false): CollectionInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public function getAllSortedByName($usedInAccountingJournal = false): CollectionInterface | |
| public function getAllSortedByName(bool $usedInAccountingJournal = false): CollectionInterface |
| public function getNextTransaction(int $transactionId): ?Transaction | ||
| { | ||
| $query = $this->getQuery('SELECT * FROM compta WHERE (idcategorie = :undeterminedCategoryId OR idevenement = :undeterminedEventId) AND id > :transactionId ORDER BY id ASC LIMIT 1'); | ||
| $query->setParams(['transactionId' => $transactionId, 'undeterminedCategoryId' => 26, 'undeterminedEventId' => 8]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a AutoQualifier::DEFAULT_CATEGORIE et AutoQualifier::DEFAULT_EVENEMENT pour les ids en dur.
| } | ||
|
|
||
| public function setPaymentComment(string $paymentComment): self | ||
| public function setPaymentComment(?string $paymentComment): self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faut faire pareil sur le getter du coup si c'est nullable.
| $form = $this->createForm(TransactionType::class, $transaction, ['operation' => 'edit', 'nextTransaction' => $nextTransaction]); | ||
| $form->handleRequest($request); | ||
| if ($form->isSubmitted() && $form->isValid()) { | ||
| /** @var SubmitButton|null $passButton */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je pense pas que ce soit utile ça vu qu'il y a un instanceof juste en dessous.
Pareil pour l'autre @var ligne 46
fixes #2107