exit; } if(isset($_GET['delete_prints_for_row'])){ //echo $_GET['usluga_id'].' - '. $_GET['delete_prints_for_row']; include_once(ROOT."/libs/php/classes/rt_calculators_class.php"); $usluga_id = (isset($_GET['usluga_id']))? $_GET['usluga_id'] : FALSE; $all = (isset($_GET['all']))? $_GET['all'] : FALSE; rtCalculators::delete_prints_for_row($_GET['delete_prints_for_row'],$usluga_id,$all); exit; } if(isset($_GET['change_quantity_and_calculators'])){ // echo $_GET['quantity']; // проверяем есть ли размеры у позиции если есть дальше не идем и отдаем оповещение if(isset($_GET['source']) && $_GET['source']=='rt'){ if(RT::checkPosAboutSizes($_GET['id'])==true){ echo '{"warning":"size_exists"}'; exit; } } include_once(ROOT."/libs/php/classes/rt_calculators_class.php"); echo rtCalculators::change_quantity_and_calculators($_GET['quantity'],$_GET['id'],$_GET['print'],$_GET['extra'],$_GET['source']); exit; } if(isset($_GET['distribute_print'])){ include_once(ROOT."/libs/php/classes/rt_calculators_class.php"); rtCalculators::distribute_print($_GET['details']); exit;