瀏覽代碼

[Administration] Documents > update : ajout limit commandes non facturées

feature/souke
Guillaume Bourgeois 1 年之前
父節點
當前提交
c9a77355b4
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. +1
    -1
      backend/controllers/DocumentController.php
  2. +1
    -0
      common/logic/Order/Order/Repository/OrderRepository.php

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

@@ -190,7 +190,7 @@ class DocumentController extends BackendController
$payment->amount = number_format($payment->amount, 2);

$posts = \Yii::$app->request->post();
if(isset($posts['Payment']['date_transaction'])) {
if(isset($posts['Payment']['date_transaction']) && $posts['Payment']['date_transaction']) {
$posts['Payment']['date_transaction'] = date('Y-m-d', strtotime(str_replace('/', '-', $posts['Payment']['date_transaction'])));
}


+ 1
- 0
common/logic/Order/Order/Repository/OrderRepository.php 查看文件

@@ -150,6 +150,7 @@ class OrderRepository extends AbstractRepository
->filterIsValid()
->filterIsNotIgnoreWhenInvoicing()
->orderByDistributionDate('ASC')
->limit(20)
->find();
}


Loading…
取消
儲存