feat: add no vat property to customers

This commit is contained in:
2026-04-14 13:12:21 +02:00
parent 26cbdeec0a
commit f55d59a0fd
6 changed files with 54 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ type Customer struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
IsNoVat bool `gorm:"default:false" json:"is_no_vat"`
}
func (u *Customer) HasPermission(permission perms.Permission) bool {