From f90e5d75fad0832b7d3a1922a9f396b6f07d3e0b Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 10 Apr 2025 15:16:22 +0200 Subject: [PATCH] fix(contracts): Minimum was not read correctly --- .env | 2 +- models/config.go | 2 +- models/contract.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 54d3ba7..5078ebf 100644 --- a/.env +++ b/.env @@ -11,7 +11,7 @@ CARD_SUBTITLE=Kaya ist cool CARD_BARCODEFORMAT=ean13 # CARD_BARCODEPREFIX= -SPONSOING_RECEIPTMINIMUM=10 +SPONSOING_RECEIPTMINIMUM=40 SPONSORING_DISCLAIMER=Kaya ist cool, aber pass auf, dass du nicht zu viel Geld sammelst! SPONSORING_BARCODEFORMAT=code128 # SPONSORING_BARCODEPREFIX= diff --git a/models/config.go b/models/config.go index 24ae6bc..25b6475 100644 --- a/models/config.go +++ b/models/config.go @@ -10,7 +10,7 @@ type Config struct { CardSubtitle string `mapstructure:"CARD_SUBTITLE"` CardBarcodeFormat string `mapstructure:"CARD_BARCODEFORMAT"` CardBarcodePrefix string `mapstructure:"CARD_BARCODEPREFIX"` - SponsoringReceiptMinimum int `mapstructure:"SPONSOING_RECEIPTMINIMUM"` + SponsoringReceiptMinimum string `mapstructure:"SPONSOING_RECEIPTMINIMUM"` SponosringDisclaimer string `mapstructure:"SPONSORING_DISCLAIMER"` SponsoringBarcodeFormat string `mapstructure:"SPONSORING_BARCODEFORMAT"` SponsoringBarcodePrefix string `mapstructure:"SPONSORING_BARCODEPREFIX"` diff --git a/models/contract.go b/models/contract.go index fcfc4a8..f010b8e 100644 --- a/models/contract.go +++ b/models/contract.go @@ -24,7 +24,7 @@ type ContractTemplateOptions struct { Runners []Runner `json:"runners"` CurrencySymbol string `json:"currency_symbol"` Disclaimer string `json:"disclaimer"` - ReceiptMinimumAmount int `json:"receipt_minimum_amount"` + ReceiptMinimumAmount string `json:"receipt_minimum_amount"` EventName string `json:"event_name"` BarcodeFormat string `json:"barcode_format"` BarcodePrefix string `json:"barcode_prefix"`