@@ -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'); | |||
@@ -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'); | |||
@@ -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'); | |||