add Manual

This commit is contained in:
Marko
2024-06-06 10:18:48 +02:00
parent 4ef896c895
commit 461ebae47c
10 changed files with 138 additions and 37 deletions

View File

@@ -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) {