瀏覽代碼

[backend] Tiller : trace retour ajax

refactoring
Guillaume 4 年之前
父節點
當前提交
c9867f0514
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      backend/controllers/DistributionController.php

+ 5
- 1
backend/controllers/DistributionController.php 查看文件

@@ -933,6 +933,8 @@ class DistributionController extends BackendController
*/
public function actionAjaxProcessSynchroTiller($date)
{
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$return = [] ;
$producerTiller = Producer::getConfig('tiller');

if ($producerTiller) {
@@ -978,7 +980,7 @@ class DistributionController extends BackendController
$typePaymentTiller = 'CASH';
}

$tiller->postOrder([
$return[] = $tiller->postOrder([
'externalId' => $order->id,
'type' => 1,
'status' => "CLOSED",
@@ -996,6 +998,8 @@ class DistributionController extends BackendController
}
}
}

return $return ;
}

public function actionAjaxGenerateDeliveryNote($idOrders)

Loading…
取消
儲存