Projekt

Allgemein

Profil

GX-Bug #46737 » OrderRecalculateTaxFix.patch

/admin/orders_edit.php - Till Tepelmann, 02.06.2016 12:43

Unterschiede anzeigen:

src/admin/orders_edit.php (revision )
942 942
		xtc_db_perform(TABLE_ORDERS_RECALCULATE, $sql_data_array);
943 943
	}
944 944
	// Produkte Ende
945
	
945

  
946
	$status_query = xtc_db_query("SELECT customers_status_show_price_tax, customers_status_add_tax_ot FROM " . TABLE_CUSTOMERS_STATUS . " WHERE customers_status_id = '" . (int)$order->info['status'] . "'");
947
	$status = xtc_db_fetch_array($status_query);
948

  
946 949
	// Module Anfang
947 950
	$module_query = xtc_db_query("SELECT 
948 951
										value, 
......
990 993

  
991 994
		$cinfo = xtc_oe_customer_infos($order->customer['ID']);
992 995
		$module_tax_rate = xtc_get_tax_rate($module_tax_class, $cinfo['country_id'], $cinfo['zone_id']);
993

  
994
		$status_query = xtc_db_query("SELECT customers_status_show_price_tax, customers_status_add_tax_ot FROM " . TABLE_CUSTOMERS_STATUS . " WHERE customers_status_id = '" . (int)$order->info['status'] . "'");
995
		$status = xtc_db_fetch_array($status_query);
996 996

  
997 997
		if($status['customers_status_show_price_tax'] == 1)
998 998
		{
    (1-1/1)