Bladeren bron

[Backend] Problème synchronisation Tiller #238

refactoring
Guillaume 2 jaren geleden
bovenliggende
commit
2fc578b4c9
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      backend/controllers/DistributionController.php
  2. +1
    -1
      common/helpers/Tiller.php

+ 1
- 1
backend/controllers/DistributionController.php Bestand weergeven

@@ -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 Bestand weergeven

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

Laden…
Annuleren
Opslaan