Browse Source

Merge tag 'hotfix_1271' into develop

hotfix_1271
feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
4308d7f265
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      common/logic/Order/Order/Service/OrderBuilder.php
  2. +1
    -0
      producer/controllers/OrderController.php

+ 1
- 1
common/logic/Order/Order/Service/OrderBuilder.php View File

if (!is_null($synchroTiller)) { if (!is_null($synchroTiller)) {
$order->tiller_synchronization = $synchroTiller; $order->tiller_synchronization = $synchroTiller;
} else { } else {
$amountPaid = $this->orderSolver->getOrderAmount($order, Order::AMOUNT_PAID);
$amountPaid = $this->orderSolver->getOrderAmountPaidByCredit($order);


if ($amountPaid >= 0.01) { if ($amountPaid >= 0.01) {
$order->tiller_synchronization = 1; $order->tiller_synchronization = 1;

+ 1
- 0
producer/controllers/OrderController.php View File

} }
} }


$order = $orderManager->findOneOrderById($order->id);
$orderManager->initOrder($order); $orderManager->initOrder($order);
$orderManager->updateOrderTillerSynchronization($order); $orderManager->updateOrderTillerSynchronization($order);
} }

Loading…
Cancel
Save