add Manual
This commit is contained in:
@@ -173,7 +173,7 @@ class Hiltes
|
||||
);
|
||||
|
||||
//$data = $this->createJson($arr);
|
||||
$this->logger->info(var_export($arr, 1));
|
||||
//$this->logger->info(var_export($arr, 1));
|
||||
|
||||
try {
|
||||
return $this->sendOrderToHiltes($arr);
|
||||
@@ -350,10 +350,7 @@ class Hiltes
|
||||
public function sendOrderToHiltes($data): bool
|
||||
{
|
||||
$url = $this->hiltesApiUrl . '/api/WebSale/import';
|
||||
|
||||
$param = $data;
|
||||
//dump($param);
|
||||
$r = $this->sendToHiltes($url, $param, true);
|
||||
$r = $this->sendToHiltes($url, $data, true);
|
||||
//$r = true;
|
||||
|
||||
if ($r === false) {
|
||||
@@ -366,7 +363,7 @@ class Hiltes
|
||||
try {
|
||||
$order = $this->orderRepository->findOneBy(array('orderId' => $data['SaleList'][0]['OrderNumber']));
|
||||
$order->setStatus(3);
|
||||
$order->setHiltes(var_export($r, 1));
|
||||
$order->setHiltes($t);
|
||||
|
||||
$this->orderRepository->update($order, true);
|
||||
} catch (\Exception $exception) {
|
||||
|
||||
Reference in New Issue
Block a user