Bläddra i källkod

Basket weight takes line quantity into account

master
Paweł Kowalski 13 år sedan
förälder
incheckning
516615b543
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      oscar/apps/shipping/__init__.py

+ 1
- 1
oscar/apps/shipping/__init__.py Visa fil

@@ -23,6 +23,6 @@ class Scales(object):
23 23
     def weigh_basket(self, basket):
24 24
         weight = 0.0
25 25
         for line in basket.lines.all():
26
-            weight += self.weigh_product(line.product)
26
+            weight += self.weigh_product(line.product) * line.quantity
27 27
         return weight
28 28
 

Laddar…
Avbryt
Spara