瀏覽代碼

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

refactoring
Guillaume Bourgeois 1 年之前
父節點
當前提交
093a26a954
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php

+ 4
- 0
common/logic/Document/DeliveryNote/Model/DeliveryNoteSearch.php 查看文件

@@ -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…
取消
儲存