Эх сурвалжийг харах

修复离线订单同步后Sales Rep丢失。

Pen Li 9 жил өмнө
parent
commit
bb9f822e2e

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 4 - 1
RedAnt ERP Mobile/common/Functions/offline/OLDataProvider.m

@@ -9356,9 +9356,12 @@
     }
     
     //    NSString *sync_data = [AESCrypt fastencrypt:[RAUtils dict2string:param]];
-    NSString *sync_data = [self translateSingleQuote:[RAUtils dict2string:param]];
+    
     NSString *sync_sql = @"";
     if (submit) {
+        NSString *sales_rep = [iSalesDB jk_queryText:[NSString stringWithFormat:@"select sales_rep from offline_order where so_id = '%@';",so_id]];
+        [param setValue:sales_rep forKey:@"sales_rep"];
+        NSString *sync_data = [self translateSingleQuote:[RAUtils dict2string:param]];
         sync_sql = [NSString stringWithFormat:@",sync_data = '%@' ",sync_data];
     }