From 2d8fce7ad274fee399d70355e5b91ca853ca44a9 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Sat, 24 Aug 2024 19:35:56 +0200 Subject: [PATCH] set taxable item by amount --- config/host.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/host.go b/config/host.go index b63a1cf..b8ed735 100644 --- a/config/host.go +++ b/config/host.go @@ -24,8 +24,8 @@ type HostItem struct { // If true, the item will be added to the calendar MustSyncCalendar bool HasEndDate bool - // If true, a tax item will be added to the invoice - Taxable bool // TODO: create taxes auto if taxable item + // Amount of taxes in EUR. If not zero, a tax item will be added to the invoice + Taxes float64 // TODO: create taxes auto if taxable item } func NewHost() *Host { @@ -47,7 +47,7 @@ func NewHost() *Host { CalendarId: os.Getenv("CALENDAR_ID_T2"), MustSyncCalendar: true, HasEndDate: true, - Taxable: true, + Taxes: 1.5, }, "T3": { @@ -56,7 +56,7 @@ func NewHost() *Host { CalendarId: os.Getenv("CALENDAR_ID_T3"), MustSyncCalendar: true, HasEndDate: true, - Taxable: true, + Taxes: 1.5, }, "Airport": { Name: "Airport",