root 2 năm trước cách đây
mục cha
commit
90a7c7b05e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/Service/FyyOrderService.php

+ 3 - 0
app/Service/FyyOrderService.php

@@ -303,6 +303,9 @@ class FyyOrderService extends Service
             $list = SaleOrdersProduct::where('del_time',0)
                 ->select('order_no','out_order_no','customer_name')
 //                ->whereColumn('order_quantity', '>', 'box_num')
+                ->where(function ($query){
+                    $query->whereColumn('order_quantity', '>', 'box_num')->orwhereColumn('box_num','=','order_quantity');
+                })
                 ->groupBy('order_no')
                 ->orderBy('id','desc')
                 ->get()->toArray();