|
|
@@ -471,8 +471,9 @@ switch ($action) {
|
|
|
when a.code='IFFDEP' then 'Departed'
|
|
|
when a.code='IFFARR' then 'Arrived'
|
|
|
when a.code='IFFAFD' then 'Completed'
|
|
|
- else 'Created' END as status,act_date,act_time,description,timezone
|
|
|
+ else 'Created' END as status,act_date,act_time,_dd.description,timezone
|
|
|
from ocean_milestone a
|
|
|
+ left join LATERAL (select sno,description from milestone where code=a.code and project_no = '*' limit 1) _dd on true
|
|
|
where a.serial_no=online_ocean.serial_no
|
|
|
and a.code in (select regexp_split_to_table('IFFBCF,IFFCPU,IFFREC,IFFDEP,IFFARR,IFFAFD', ','))
|
|
|
and a.act_date is not null
|