Commit cb5ba408 authored by Kulya's avatar Kulya 😊

Add billz clientId to order 13

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