Ver código fonte

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

refactoring
Guillaume Bourgeois 1 ano atrás
pai
commit
093a26a954
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php

+ 4
- 0
common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php Ver arquivo

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

Carregando…
Cancelar
Salvar