ShuanghongS преди 1 месец
родител
ревизия
58e5c18386
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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']."'