Skip to content

Commit

Permalink
Update invoice formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Nov 4, 2023
1 parent 9a8fb8a commit 041be54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions routes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"os"
"strconv"
"time"

Expand Down Expand Up @@ -121,6 +122,9 @@ func SetRoutes(app *fiber.App) {
"InvoiceNumber": getInvoiceNumber(dog),
"Date": time.Now().Format("Monday, 2 January 2006"),
"DueDate": nextMonday().Format("Monday, 2 January 2006"),
"FromName": os.Getenv("FROM_NAME"),
"FromAddress": os.Getenv("FROM_ADDRESS"),
"FromCity": os.Getenv("FROM_CITY"),
"Name": dog.Name,
"OwnerName": dog.OwnerName,
"Address": dog.Address,
Expand Down
6 changes: 3 additions & 3 deletions views/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@
<table>
<tr>
<td>
Rhianna McKendry<br />
4 Richard Hadlee Lane<br />
Rolleston, 7615
{{.FromName}}<br />
{{.FromAddress}}<br />
{{.FromCity}}
</td>
<td></td>
<td>
Expand Down

0 comments on commit 041be54

Please sign in to comment.