Bläddra i källkod

[Backend] Problème synchronisation Tiller #238

refactoring
Guillaume 2 år sedan
förälder
incheckning
2fc578b4c9
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. +1
    -1
      backend/controllers/DistributionController.php
  2. +1
    -1
      common/helpers/Tiller.php

+ 1
- 1
backend/controllers/DistributionController.php Visa fil

@@ -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 Visa fil

@@ -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;

Laddar…
Avbryt
Spara