Переглянути джерело

Correction problème nombre d'éléments dans liste BL / devis et factures.

dev
Guillaume Bourgeois 4 роки тому
джерело
коміт
2d98cfa183
3 змінених файлів з 3 додано та 6 видалено
  1. +1
    -2
      common/models/DeliveryNoteSearch.php
  2. +1
    -2
      common/models/InvoiceSearch.php
  3. +1
    -2
      common/models/QuotationSearch.php

+ 1
- 2
common/models/DeliveryNoteSearch.php Переглянути файл

@@ -62,7 +62,6 @@ class DeliveryNoteSearch extends DeliveryNote

$query = DeliveryNote::find()
->with($optionsSearch['with'])
->joinWith($optionsSearch['join_with'], true)
->where(['delivery_note.id_producer' => GlobalParam::getCurrentProducerId()])
->orderBy('delivery_note.status ASC, delivery_note.reference DESC');

@@ -70,7 +69,7 @@ class DeliveryNoteSearch extends DeliveryNote
'query' => $query,
'sort' => ['attributes' => ['name', 'reference', 'date']],
'pagination' => [
'pageSize' => 30,
'pageSize' => 20,
],
]);


+ 1
- 2
common/models/InvoiceSearch.php Переглянути файл

@@ -60,7 +60,6 @@ class InvoiceSearch extends Invoice

$query = Invoice::find()
->with($optionsSearch['with'])
->joinWith($optionsSearch['join_with'], true)
->where(['invoice.id_producer' => GlobalParam::getCurrentProducerId()])
->orderBy('invoice.status ASC, invoice.reference DESC');

@@ -68,7 +67,7 @@ class InvoiceSearch extends Invoice
'query' => $query,
'sort' => ['attributes' => ['name', 'reference', 'date']],
'pagination' => [
'pageSize' => 30,
'pageSize' => 20,
],
]);


+ 1
- 2
common/models/QuotationSearch.php Переглянути файл

@@ -60,7 +60,6 @@ class QuotationSearch extends Quotation

$query = Quotation::find()
->with($optionsSearch['with'])
->joinWith($optionsSearch['join_with'], true)
->where(['quotation.id_producer' => GlobalParam::getCurrentProducerId()])
->orderBy('quotation.status ASC, quotation.reference DESC');

@@ -68,7 +67,7 @@ class QuotationSearch extends Quotation
'query' => $query,
'sort' => ['attributes' => ['name', 'reference', 'date']],
'pagination' => [
'pageSize' => 30,
'pageSize' => 20,
],
]);


Завантаження…
Відмінити
Зберегти