Commit cb5ba408 authored by Kulya's avatar Kulya 😊

Add billz clientId to order 13

parent 5e3cfd81
......@@ -635,7 +635,7 @@ class AloVoiceRest
$prdAllCnd = count($first["answer"]["result"]);
echo "Загружено ".$prdAllCnd." товаров!";
echo "Импортирования в Тарговый каталог...";
echo "Импортирования в Тoрговый каталог...";
foreach($first["answer"]["result"] as $prd){
$this->bx_process_product($prd);
......@@ -921,7 +921,7 @@ class AloVoiceRest
private function create_billz_order($r=false) {
$officeId = 1347;
$officeId = 1594; //1347;
$arOrderProducts = [
[
"office_id" => $officeId,
......
......@@ -77,7 +77,7 @@ require_once (__DIR__.'/keys.php');
$price = (!empty($prd["price"])) ? $prd["price"] : 0;
$dsnt = (!empty($prd["discount"])) ? $prd["discount"] : 0;
$arProducts[] = [
// "billzOfficeID" => $prd["office_id"],
"billzOfficeID" => $prd["office_id"],
"billzProductID" => $prd["billz_id"],
"productID" => $prd["id"],
// "name" => $prd["name"],
......@@ -113,8 +113,7 @@ require_once (__DIR__.'/keys.php');
}
public static function getCatalog($page=1,$cnt=1) {
$result = static::callCurl("catalog.get",[
$catalogParams = [
"PerPage" => (int)$cnt,
"Page" => (int)$page,
"Sort" => [
......@@ -122,7 +121,10 @@ require_once (__DIR__.'/keys.php');
"field" => "id",
"order" => "desc"
]
]);
];
$catalogParams = [ 'Filter.BarCodes' => '4780058100438' ];
$result = static::callCurl("catalog.get",$catalogParams);
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment