From 5ac740438e311508ebd77d8ab669ec5ed0aab11f Mon Sep 17 00:00:00 2001 From: Dennis Kleber Date: Mon, 25 Nov 2024 12:26:12 +0100 Subject: [PATCH] fix norms in Sources --- dao/updates.go | 4 ++-- models/source.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dao/updates.go b/dao/updates.go index ea2e789..3b1dff9 100644 --- a/dao/updates.go +++ b/dao/updates.go @@ -70,9 +70,9 @@ func UpdateDatabase() { CreateDefaultOrganisation(ctx) Updates.Insert(ctx, "create_default_organisation") } - if !Updates.Check(ctx, "update_deposit_units_1") { + if !Updates.Check(ctx, "update_deposit_units_3") { UpdateDepositUnitNorms(ctx) - Updates.Insert(ctx, "update_deposit_units_1") + Updates.Insert(ctx, "update_deposit_units_3") } if !Updates.Check(ctx, "publish_roles_initial") { log.Print("publish_roles_initial") diff --git a/models/source.go b/models/source.go index acedc63..47160df 100644 --- a/models/source.go +++ b/models/source.go @@ -76,6 +76,7 @@ func (i *SourceCreate) Source() *Source { TakingID: i.TakingID, PaymentType: i.PaymentType, Money: i.Money, + Norms: i.Norms, Modified: vmod.NewModified(), } } @@ -87,6 +88,7 @@ func (i *SourceUpdate) Source() *Source { PaymentType: i.PaymentType, TakingID: i.TakingID, Money: i.Money, + Norms: i.Norms, } }