ShuanghongS před 1 měsícem
rodič
revize
58e5c18386
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      service/destination_delivery.class.php

+ 1 - 1
service/destination_delivery.class.php

@@ -306,7 +306,7 @@ class destination_delivery {
             }
             $sqlKNDDWhere = "and exists(select 1 from public.kln_ocean ". $sqlWhere."  and kln_ocean.serial_no = any(kln_destination_delivery.h_serial_no) limit 1)";                    
 
-            $sql  = "select consignee as code from public.kln_destination_delivery
+            $sql  = "select DISTINCT consignee AS code from public.kln_destination_delivery
                     where 
                         status NOT IN ('Cancel', 'Reject')
                         AND delivery_date >= '".$month['month_start']."'