correct the discount sums
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user