Browse Source

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

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
c9a77355b4
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      backend/controllers/DocumentController.php
  2. +1
    -0
      common/logic/Order/Order/Repository/OrderRepository.php

+ 1
- 1
backend/controllers/DocumentController.php View File

$payment->amount = number_format($payment->amount, 2); $payment->amount = number_format($payment->amount, 2);


$posts = \Yii::$app->request->post(); $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']))); $posts['Payment']['date_transaction'] = date('Y-m-d', strtotime(str_replace('/', '-', $posts['Payment']['date_transaction'])));
} }



+ 1
- 0
common/logic/Order/Order/Repository/OrderRepository.php View File

->filterIsValid() ->filterIsValid()
->filterIsNotIgnoreWhenInvoicing() ->filterIsNotIgnoreWhenInvoicing()
->orderByDistributionDate('ASC') ->orderByDistributionDate('ASC')
->limit(20)
->find(); ->find();
} }



Loading…
Cancel
Save