Bläddra i källkod

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

refactoring
Guillaume Bourgeois 1 år sedan
förälder
incheckning
093a26a954
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. +4
    -0
      common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php

+ 4
- 0
common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php Visa fil

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

Laddar…
Avbryt
Spara