Пример #1
0
		 exit;
	}
	if(isset($_GET['expel_value_from_calculation'])){
	     //print_r(json_decode($_GET['expel_value_from_calculation']));
		 RT::expel_value_from_calculation($_GET['id'],$_GET['expel_value_from_calculation']);
		 exit;
	}
	if(isset($_GET['change_svetofor'])){
	     $idsArr = (isset($_GET['idsArr']))? json_decode($_GET['idsArr']):false;
		 RT::change_svetofor(array($_GET['id']),$_GET['change_svetofor'],$idsArr);
		 exit;
	}
	if(isset($_GET['make_com_offer'])){
		 include_once(ROOT."/libs/php/classes/com_pred_class.php");
		 
		 echo  Com_pred::save_to_tbl($_GET['make_com_offer']);

		 /* старый вариант создания коммерческого предложения
		 echo make_com_offer($id_arr,(int)$_GET['stock'],$_GET['order_num']/ *string* /,$_GET['client_manager_id']/ *string* /,(int)$_GET['conrtol_num']);
		 */
		 exit;
	}
	if(isset($_GET['sendToSnab'])){
		 
		 echo  RT::sendToSnab(json_decode($_GET['sendToSnab']));
		 exit;
	}
	

	/*if(isset($_GET['makeSpecAndPreorder'])){		 
		 // RT::make_specification($_GET['make_order']);