Esempio n. 1
0
		 // echo $_GET['quantity'];
		 
		 // проверяем есть ли размеры у позиции если есть дальше не идем и отдаем оповещение
		 if(isset($_GET['source']) && $_GET['source']=='rt'){
			 if(RT::checkPosAboutSizes($_GET['id'])==true){
				 echo '{"warning":"size_exists"}';
				 exit;
			 }
		 }
		 
		 RT::change_quantity($_GET['quantity'],$_GET['id'],$_GET['source']);
		 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']);
		 */