Browse Source

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

refactoring
Guillaume Bourgeois 1 year ago
parent
commit
093a26a954
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php

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

$deliveryNoteRepository = DeliveryNoteRepository::getInstance(); $deliveryNoteRepository = DeliveryNoteRepository::getInstance();
$optionsSearch = $deliveryNoteRepository->getDefaultOptionsSearch(); $optionsSearch = $deliveryNoteRepository->getDefaultOptionsSearch();


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

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

Loading…
Cancel
Save