Projekt

Allgemein

Profil

GX-Bug #42034 » MwstShoppingCartFix.patch

/system/classes/shopping_cart/OrderDetailsCartContentView.inc.php - Till Tepelmann, 18.06.2015 19:05

Unterschiede anzeigen:

src/system/classes/shopping_cart/OrderDetailsCartContentView.inc.php (revision )
190 190
		}
191 191
		
192 192
		$this->total = $this->cart->show_total();
193
        $this->total2 = $this->total;
193 194

  
194 195
		$this->_setCustomerDiscount();
195 196

  
......
275 276
				$this->total -= $this->discount;
276 277
			}
277 278
			$this->totalContent .= SUB_TITLE_SUB_TOTAL . $this->xtcPrice->xtcFormat($this->total, true) . '<br />';
278
			$this->total = $this->total + $this->discount;
279
			//$this->total = $this->total + $this->discount;
279 280
		}
280 281
		else
281 282
		{
......
307 308
						$tax += $valueTax['value'];
308 309
					}
309 310

  
310
					$this->total = (double)$this->total - (double)$tax + $this->discount;
311
					//$this->total = (double)$this->total - (double)$tax + $this->discount;
312
                    $this->total2 = $this->xtcPrice->xtcFormat((double)$this->total - (double)$tax + $this->discount, false);
311 313
				}
312 314
			}
313 315
		}
    (1-1/1)