mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
set taxable item by amount
This commit is contained in:
parent
a5fa103c57
commit
2d8fce7ad2
1 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue