ShuanghongS 2 meses atrás
pai
commit
58d33f5d72
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      utils/common.class.php

+ 5 - 0
utils/common.class.php

@@ -3985,6 +3985,10 @@ class common {
             $_contact_number = $_POST['contact_number'][$key]; 
 
             $_contact_id = $_POST['contact_id'][$key];
+            //如果是新加的为空,这取当前consignee_id  WILSON80001
+            if(empty($_contact_id)){
+                $_contact_id = $_POST['consignee_id'][0];
+            }
             $_sync_key = $_POST['sync_key'][$key];
             $_from_station = $_POST['from_station'][$key];
             $_contact_type = $_POST['contact_type'][$key];
@@ -4022,6 +4026,7 @@ class common {
         $ctnr  = $delivery_booking['ctnr'];
          
         //从UI 设计的case来讲,一个hbol就生成成一个wo ID 
+        //空運我們先不管,不做同步,就只做創建到審批,後面的讓他們自己錄入系統處理吧
         foreach($h_serial_no_arr as $serial_no){
             $oceanInfo = common::excuteObjectSql("select (select manifest_type from public.ocean o where o.serial_no = ooc.serial_no  limit 1) as manifest_type
                 from public.kln_ocean oo where o.serial_no ='".$serial_no."'" );