Sfoglia il codice sorgente

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

refactoring
Guillaume Bourgeois 1 anno fa
parent
commit
093a26a954
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php

+ 4
- 0
common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php Vedi File

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

Loading…
Annulla
Salva