Projekt

Allgemein

Profil

GX-Bug #60151 » GIFTAmountCustomerFix.patch

Till Tepelmann, 28.11.2018 13:33

Unterschiede anzeigen:

src/includes/modules/order_total/ot_gv.php (date 1542645064000)
149 149

  
150 150
	function update_credit_account($i) {
151 151
		global $order, $insert_id, $REMOTE_ADDR;
152
		if (preg_match('/^GIFT/', addslashes($order->products[$i]['model']))) {
153
			$gv_order_amount = ($order->products[$i]['final_price']);
152
		if (preg_match('/^GIFT_(\d+)/', addslashes($order->products[$i]['model']),$matches)) {
153
			if($matches[1])
154
			{
155
				$gv_order_amount = $matches[1];
156
			}
157
			else
158
			{
159
				$gv_order_amount = ($order->products[$i]['final_price']);
160
			}
154 161
			if ($this->credit_tax == 'true')
155 162
				$gv_order_amount = $gv_order_amount * (100 + $order->products[$i]['tax']) / 100;
156 163
			//        $gv_order_amount += 0.001;
    (1-1/1)