|
@@ -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)";
|
|
$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
|
|
where
|
|
|
status NOT IN ('Cancel', 'Reject')
|
|
status NOT IN ('Cancel', 'Reject')
|
|
|
AND delivery_date >= '".$month['month_start']."'
|
|
AND delivery_date >= '".$month['month_start']."'
|