Browse Source

[Backend] Bons de livraison : correctif recherche par point de vente

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
972bd5ab2b
3 changed files with 5 additions and 29 deletions
  1. +1
    -0
      common/config/.gitignore
  2. +0
    -29
      common/config/test-local.php
  3. +4
    -0
      common/models/DeliveryNoteSearch.php

+ 1
- 0
common/config/.gitignore View File

bootstrap.php bootstrap.php
main-local.php main-local.php
params-local.php params-local.php
test-local.php


stripe/*.key stripe/*.key
mailjet/*.key mailjet/*.key

+ 0
- 29
common/config/test-local.php View File

<?php

return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=opendistrib_test',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => true,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp-laclic.alwaysdata.net',
'username' => 'nepasrepondre@laclic.fr',
'password' => 'UPdz4ain73u3T3S74z2MHG9gUKnu6Qq6',
'port' => '25',
//'encryption' => 'tls',
],
],
],
];

+ 4
- 0
common/models/DeliveryNoteSearch.php View File

{ {
$optionsSearch = self::defaultOptionsSearch(); $optionsSearch = self::defaultOptionsSearch();


if(isset($params['DeliveryNoteSearch']['id_point_sale'])) {
$optionsSearch['join_with'][] = 'orders';
}

$query = DeliveryNote::find() $query = DeliveryNote::find()
->with($optionsSearch['with']) ->with($optionsSearch['with'])
->joinWith($optionsSearch['join_with']) ->joinWith($optionsSearch['join_with'])

Loading…
Cancel
Save