From a0c82dc35177e6c61528627f73d53dc93ed0ee7f Mon Sep 17 00:00:00 2001 From: matst80 Date: Sat, 18 Oct 2025 15:51:04 +0200 Subject: [PATCH] missing file --- pkg/cart/mutation_add_voucher.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/cart/mutation_add_voucher.go b/pkg/cart/mutation_add_voucher.go index 85bffe0..88743cc 100644 --- a/pkg/cart/mutation_add_voucher.go +++ b/pkg/cart/mutation_add_voucher.go @@ -54,10 +54,12 @@ func AddVoucher(g *CartGrain, m *messages.AddVoucher) error { g.lastVoucherId++ g.Vouchers = append(g.Vouchers, &Voucher{ - Id: g.lastVoucherId, - Code: m.Code, - Rules: m.VoucherRules, - Value: m.Value, + Id: g.lastVoucherId, + Applied: false, + Description: m.Description, + Code: m.Code, + Rules: m.VoucherRules, + Value: m.Value, }) g.UpdateTotals() return nil