Explorar el Código

[Backend] Problème synchronisation Tiller #238

refactoring
Guillaume hace 2 años
padre
commit
2fc578b4c9
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      backend/controllers/DistributionController.php
  2. +1
    -1
      common/helpers/Tiller.php

+ 1
- 1
backend/controllers/DistributionController.php Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar