Pārlūkot izejas kodu

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

refactoring
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
093a26a954
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php

+ 4
- 0
common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php Parādīt failu

@@ -62,6 +62,10 @@ class DeliveryNoteSearch extends DeliveryNote
$deliveryNoteRepository = DeliveryNoteRepository::getInstance();
$optionsSearch = $deliveryNoteRepository->getDefaultOptionsSearch();

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

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

Notiek ielāde…
Atcelt
Saglabāt