set taxable item by amount

This commit is contained in:
Ruidy 2024-08-24 19:35:56 +02:00
parent a5fa103c57
commit 2d8fce7ad2
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -24,8 +24,8 @@ type HostItem struct {
// If true, the item will be added to the calendar // If true, the item will be added to the calendar
MustSyncCalendar bool MustSyncCalendar bool
HasEndDate bool HasEndDate bool
// If true, a tax item will be added to the invoice // Amount of taxes in EUR. If not zero, a tax item will be added to the invoice
Taxable bool // TODO: create taxes auto if taxable item Taxes float64 // TODO: create taxes auto if taxable item
} }
func NewHost() *Host { func NewHost() *Host {
@ -47,7 +47,7 @@ func NewHost() *Host {
CalendarId: os.Getenv("CALENDAR_ID_T2"), CalendarId: os.Getenv("CALENDAR_ID_T2"),
MustSyncCalendar: true, MustSyncCalendar: true,
HasEndDate: true, HasEndDate: true,
Taxable: true, Taxes: 1.5,
}, },
"T3": { "T3": {
@ -56,7 +56,7 @@ func NewHost() *Host {
CalendarId: os.Getenv("CALENDAR_ID_T3"), CalendarId: os.Getenv("CALENDAR_ID_T3"),
MustSyncCalendar: true, MustSyncCalendar: true,
HasEndDate: true, HasEndDate: true,
Taxable: true, Taxes: 1.5,
}, },
"Airport": { "Airport": {
Name: "Airport", Name: "Airport",