Skip to content

Commit

Permalink
Feat/send ticket (#270)
Browse files Browse the repository at this point in the history
* feat: new email system

* feat: add General Mail route

* feat: back to street legal

* feat: add sendTemplate

* fix: it's better with .fr

* fix: update email template topics

* fix: add return and fix preview undefined

* fix: change minor mail target

* fix: lint

* fix: lint2

* test: disable mail tests

* test: disable other mail test

* feat: mail smtp

* Update .env.example

* Update notPaid.ts

* Update env.ts

* fix: serialized mail now handle attachment

* fix: lint

* feat: update ticket generation with new design and layout adjustments

* fix: adjust text positioning for place in ticket generation

---------

Co-authored-by: Noé Landré <[email protected]>
Co-authored-by: Arthur Dodin <[email protected]>
Co-authored-by: Antoine D <[email protected]>
  • Loading branch information
4 people authored Dec 3, 2024
1 parent 78da9a0 commit 91cff70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const generateTicket = async (cartItem: DetailedCartItem): Promise<EmailA
if (user.place) {
const place = `Siège ${user.place}`;
const placeWidth = document.widthOfString(place);
textFormat.text(place, textX - placeWidth / 2, height - lineSpaceCorrection * 2);
textFormat.text(place, textX - placeWidth / 2, height - fontSize - lineSpaceCorrection * 4);
}
// Place the QR Code
document.image(qrcode, qrCodeX, qrCodeY, { width: qrCodeSize });
Expand Down

0 comments on commit 91cff70

Please sign in to comment.