Skip to content

Instantly share code, notes, and snippets.

@Newol1
Created June 30, 2021 14:11
Show Gist options
  • Save Newol1/2cc62b9b3000c0e67982b23e9dddedac to your computer and use it in GitHub Desktop.
Save Newol1/2cc62b9b3000c0e67982b23e9dddedac to your computer and use it in GitHub Desktop.
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
require_once ($_SERVER['DOCUMENT_ROOT'] . '/local/classes/WinCalc/WinCalc.php');
$winCalc = new \Integrations\WinCalc\WinCalc(\CCrmOwnerType::DealName);
$res = $winCalc->updateSingleOffer(397801);
echo '<pre>';
//while($ob = $res->fetch()) {
// if ($ob['STATUSID'] == 4) {
// print_r($ob['ID']);
// print_r(PHP_EOL);
// print_r($ob['STATUSID']);
// print_r(PHP_EOL);
// }
//}
print_r($winCalc->errorArr);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment