missing file
This commit is contained in:
@@ -54,10 +54,12 @@ func AddVoucher(g *CartGrain, m *messages.AddVoucher) error {
|
|||||||
|
|
||||||
g.lastVoucherId++
|
g.lastVoucherId++
|
||||||
g.Vouchers = append(g.Vouchers, &Voucher{
|
g.Vouchers = append(g.Vouchers, &Voucher{
|
||||||
Id: g.lastVoucherId,
|
Id: g.lastVoucherId,
|
||||||
Code: m.Code,
|
Applied: false,
|
||||||
Rules: m.VoucherRules,
|
Description: m.Description,
|
||||||
Value: m.Value,
|
Code: m.Code,
|
||||||
|
Rules: m.VoucherRules,
|
||||||
|
Value: m.Value,
|
||||||
})
|
})
|
||||||
g.UpdateTotals()
|
g.UpdateTotals()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user