Browse Source

Gestion des devis : formulaire de création #157

refactoring
Guillaume Bourgeois 4 years ago
parent
commit
d9b9dbde84
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      backend/views/quotation/index.php
  2. +1
    -1
      common/models/QuotationSearch.php

+ 1
- 1
backend/views/quotation/index.php View File

@@ -38,7 +38,7 @@

$this->setTitle('Devis');
$this->addBreadcrumb($this->getTitle());
//$this->addButton(['label' => 'Nouveau devis <span class="glyphicon glyphicon-plus"></span>', 'url' => 'quotation/create', 'class' => 'btn btn-primary']);
$this->addButton(['label' => 'Nouveau devis <span class="glyphicon glyphicon-plus"></span>', 'url' => 'quotation/create', 'class' => 'btn btn-primary']);

?>


+ 1
- 1
common/models/QuotationSearch.php View File

@@ -61,7 +61,7 @@ class QuotationSearch extends Quotation
$query = Quotation::find()
->with($optionsSearch['with'])
->joinWith($optionsSearch['join_with'], true)
->where(['distribution.id_producer' => GlobalParam::getCurrentProducerId()])
->where(['quotation.id_producer' => GlobalParam::getCurrentProducerId()])
->orderBy('quotation.reference DESC')
;

Loading…
Cancel
Save