From a71c6685f06e80853b4764a8f402a826f068e764 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner <lorenz.stechauner@necronda.net> Date: Thu, 25 Jan 2024 12:27:53 +0100 Subject: [PATCH] BillingVariant: Calculate member modifiers only if delivery modifiers are considered --- Elwig/Helpers/Billing/BillingVariant.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Elwig/Helpers/Billing/BillingVariant.cs b/Elwig/Helpers/Billing/BillingVariant.cs index dba42d6..ef363ca 100644 --- a/Elwig/Helpers/Billing/BillingVariant.cs +++ b/Elwig/Helpers/Billing/BillingVariant.cs @@ -24,9 +24,10 @@ namespace Elwig.Helpers.Billing { await DeleteInDb(cnx); await SetCalcTime(cnx); await CalculatePrices(cnx); - if (Data.ConsiderDelieryModifiers) + if (Data.ConsiderDelieryModifiers) { await CalculateDeliveryModifiers(cnx); - await CalculateMemberModifiers(cnx); + await CalculateMemberModifiers(cnx); + } await tx.CommitAsync(); }