enhancementgood first issueinvoice
Métriques du dépôt
- Stars
- (0 étoile)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
In prepareTemplate currently, the invoice id in the returned object is set to the createdAt-time stamp. This is probably OK but could be problematic if invoices happen to be created simultaneously.
The number in question is a reference id for the invoice and is as such required to be digits only.
Two spontaneous solutions:
- Find a hash-generator without collisions that only generate numbers.
- Find some way to make sure that two invoices never get the same id, e.g. by making the creation of
ninvoices takenms.