Browse Source

Merge branch 'dev'

prodstable
Guillaume 4 years ago
parent
commit
249a23c471
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      backend/controllers/DistributionController.php

+ 5
- 1
backend/controllers/DistributionController.php View File

*/ */
public function actionAjaxProcessSynchroTiller($date) public function actionAjaxProcessSynchroTiller($date)
{ {
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$return = [] ;
$producerTiller = Producer::getConfig('tiller'); $producerTiller = Producer::getConfig('tiller');


if ($producerTiller) { if ($producerTiller) {
$typePaymentTiller = 'CASH'; $typePaymentTiller = 'CASH';
} }


$tiller->postOrder([
$return[] = $tiller->postOrder([
'externalId' => $order->id, 'externalId' => $order->id,
'type' => 1, 'type' => 1,
'status' => "CLOSED", 'status' => "CLOSED",
} }
} }
} }

return $return ;
} }


public function actionAjaxGenerateDeliveryNote($idOrders) public function actionAjaxGenerateDeliveryNote($idOrders)

Loading…
Cancel
Save