correct the discount sums
Some checks failed
Build and Publish / Metadata (push) Successful in 11s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 53s
Build and Publish / BuildAndDeployArm64 (push) Has been cancelled

This commit is contained in:
matst80
2025-11-11 09:40:12 +01:00
parent ab5d9cb2b7
commit 19fc5a9553
2 changed files with 3 additions and 3 deletions

View File

@@ -249,7 +249,7 @@ func (c *CartGrain) UpdateTotals() {
c.TotalDiscount = NewPrice()
for _, item := range c.Items {
rowTotal := MultiplyPrice(item.Price, int64(item.Quantity))
rowTotal := MultiplyPrice(*item.OrgPrice, int64(item.Quantity))
if item.OrgPrice != nil {
diff := NewPrice()