[Error] 
Call to a member function GetRests() on null (0)
/var/www/aversev/data/www/aversev.by/local/php_interface/include/connect.php:56
#0: Connect->GetRests(array)
	/var/www/aversev/data/www/aversev.by/local/php_interface/init.php:145
#1: onOrderSave(object)
	
#2: call_user_func_array(string, array)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/lib/eventmanager.php:435
#3: Bitrix\Main\EventManager->sendToEventHandler(array, object)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/lib/eventmanager.php:371
#4: Bitrix\Main\EventManager->send(object)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/lib/event.php:142
#5: Bitrix\Main\Event->send()
	/var/www/aversev/data/www/aversev.by/bitrix/modules/sale/lib/orderbase.php:1396
#6: Bitrix\Sale\OrderBase->callEventOnBeforeOrderSaved()
	/var/www/aversev/data/www/aversev.by/bitrix/modules/sale/lib/orderbase.php:1065
#7: Bitrix\Sale\OrderBase->save()
	/var/www/aversev/data/www/aversev.by/bitrix/modules/sale/lib/order.php:2341
#8: Bitrix\Sale\Order->save()
	/var/www/aversev/data/www/aversev.by/local/php_interface/init.php:843
#9: Cancel_Order(integer)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/classes/mysql/agent.php(162) : eval()'d code:1
#10: eval
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/classes/mysql/agent.php:162
#11: CAgent::ExecuteAgents(string)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/classes/mysql/agent.php:40
#12: CAgent::CheckAgents()
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/include.php:271
#13: require_once(string)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/include/prolog_before.php:14
#14: require_once(string)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/include/prolog.php:10
#15: require_once(string)
	/var/www/aversev/data/www/aversev.by/bitrix/header.php:1
#16: require(string)
	/var/www/aversev/data/www/aversev.by/katalog/index.php:2
#17: include_once(string)
	/var/www/aversev/data/www/aversev.by/bitrix/modules/main/include/urlrewrite.php:159
#18: include_once(string)
	/var/www/aversev/data/www/aversev.by/bitrix/urlrewrite.php:2