cqp hace 3 semanas
padre
commit
60382d62b0
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      app/Jobs/ProcessDataJob.php

+ 10 - 0
app/Jobs/ProcessDataJob.php

@@ -1051,6 +1051,11 @@ class ProcessDataJob implements ShouldQueue
             }
 
             $service->commit();
+
+            Inventory::where('del_time', 0)
+                ->where('order_number', $data['order_number'])
+                ->where('login_type', $data['login_type'])
+                ->update(['code' => $no]);
         } catch (\Throwable $exception) {
             $service->rollBack();
             return [false, "同步用友数据库失败: " . $exception->getMessage()];
@@ -1140,6 +1145,11 @@ class ProcessDataJob implements ShouldQueue
             }
 
             $service->commit();
+
+            Vendor::where('del_time', 0)
+                ->where('order_number', $data['order_number'])
+                ->where('login_type', $data['login_type'])
+                ->update(['code' => $no]);
         } catch (\Throwable $exception) {
             $service->rollBack();
             return [false, "创建供应商失败: " . $exception->getMessage()];