Bladeren bron

Sort条件没变情况下也请求数据,Create Order增加Must Call为默认值

Pen Li 9 jaren geleden
bovenliggende
commit
5d2dcf6002

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


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

@@ -2011,7 +2011,7 @@
     NSString *contact_name=[RAUtils arr2string:arr_name separator:@" " trim:true];
     
     
-    NSString* sql_neworder=[NSString stringWithFormat:@"insert into offline_order(so_id,status,customer_cid,customer_contact,customer_email,customer_fax,customer_phone,sales_rep,create_by,customer_contact) values('OFFLINE'||hex(randomblob(16)),0,'%@','%@','%@','%@','%@','%@','%@','%@')",customer_cid,customer_contact,customer_email,customer_fax,customer_phone,customer_sales_rep,create_by ,contact_name];
+    NSString* sql_neworder=[NSString stringWithFormat:@"insert into offline_order(so_id,status,customer_cid,customer_contact,customer_email,customer_fax,customer_phone,sales_rep,create_by,customer_contact,must_call) values('OFFLINE'||hex(randomblob(16)),0,'%@','%@','%@','%@','%@','%@','%@','%@',1)",customer_cid,customer_contact,customer_email,customer_fax,customer_phone,customer_sales_rep,create_by ,contact_name];
     
     sqlite3 *db = [iSalesDB get_db];
     

+ 2 - 2
RedAnt ERP Mobile/iSales-NPD/SortItemViewController.m

@@ -135,7 +135,7 @@
 //       
 //    });
 
-    if (indexPath.row != self.sortIndex) {
+//    if (indexPath.row != self.sortIndex) {
 //        NSIndexPath *oldIndexPath = [NSIndexPath indexPathForRow:self.sortIndex inSection:0];
 //        SortItemCell *oldCell = [tableView cellForRowAtIndexPath:oldIndexPath];
 //        oldCell.selectedSort = NO;
@@ -147,7 +147,7 @@
             self.sortBlock(self.sortIndex);
         }
         
-    }
+//    }
     
     [self.view removeFromSuperview];