Changeset 7810
- Timestamp:
- 03/11/08 22:34:44 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfShoppingCartPlugin/lib/sfShoppingCart.class.php
r1707 r7810 214 214 foreach ($this->getItems() as $item) 215 215 { 216 $discount = $item->getDiscount() * -1; 216 217 if ($this->is_unit_price_ttc) 217 218 { 218 $total_ht += $item->getQuantity() * $item->getPrice() * (1 - $item->getDiscount() / 100)/ (1 + $this->tax / 100);219 $total_ht += $item->getQuantity() * $item->getPrice() + $discount / (1 + $this->tax / 100); 219 220 } 220 221 else 221 222 { 222 $total_ht += $item->getQuantity() * $item->getPrice() * (1 - $item->getDiscount() / 100);223 $total_ht += $item->getQuantity() * $item->getPrice() + $discount; 223 224 } 224 225 }

