Przeglądaj źródła

[Backend] Problème synchronisation Tiller #238

refactoring
Guillaume 2 lat temu
rodzic
commit
2fc578b4c9
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      backend/controllers/DistributionController.php
  2. +1
    -1
      common/helpers/Tiller.php

+ 1
- 1
backend/controllers/DistributionController.php Wyświetl plik

@@ -1387,7 +1387,7 @@ class DistributionController extends BackendController
]
]);

$order->tiller_external_id = $returnTiller->externalId;
$order->tiller_external_id = $returnTiller->id;
$order->save();

$return[] = $returnTiller;

+ 1
- 1
common/helpers/Tiller.php Wyświetl plik

@@ -90,7 +90,7 @@ class Tiller
$ordersOpendistribSynchro[$orderOpendistrib->id] = false;
if(isset($ordersTiller->orders)) {
foreach ($ordersTiller->orders as $orderTiller) {
if ($orderOpendistrib->tiller_external_id == $orderTiller->externalId
if ($orderOpendistrib->tiller_external_id == $orderTiller->id
&& (int) round($orderOpendistrib->getAmountWithTax(Order::AMOUNT_TOTAL) * 100) == (int) $orderTiller->currentBill) {

$ordersOpendistribSynchro[$orderOpendistrib->id] = true;

Ładowanie…
Anuluj
Zapisz