Pārlūkot izejas kodu

[backend] Documents : intégration joinWith dans les modèles de recherche

refactoring
Guillaume Bourgeois pirms 4 gadiem
vecāks
revīzija
60bbca4488
3 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      common/models/DeliveryNoteSearch.php
  2. +1
    -0
      common/models/InvoiceSearch.php
  3. +1
    -0
      common/models/QuotationSearch.php

+ 1
- 0
common/models/DeliveryNoteSearch.php Parādīt failu

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

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


+ 1
- 0
common/models/InvoiceSearch.php Parādīt failu

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

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


+ 1
- 0
common/models/QuotationSearch.php Parādīt failu

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

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


Notiek ielāde…
Atcelt
Saglabāt