Explorar o código

1.修改Homer Order Detail Model Section Title Invoice#判断。

Pen Li %!s(int64=8) %!d(string=hai) anos
pai
achega
044a4aadf6

+ 2 - 2
RedAnt ERP Mobile/common/Functions/order/OrderDetailViewController.m

@@ -1616,7 +1616,7 @@
         btn.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
         [myView addSubview:btn];
         
-    } else if ([title containsString:@"Models"]) {
+    } else if ([title containsString:@"Models"] || [title containsString:@"Invoice#"]) {
         
         BOOL item_switch = [[section_item objectForKey:@"switch"] boolValue];
         NSString *normalTitle = @"Show";
@@ -1770,7 +1770,7 @@
         NSIndexSet *sectionToReload = [NSIndexSet indexSetWithIndexesInRange:range];
         [self.detailTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
         
-    } else if ([title containsString:@"Models"]) {
+    } else if ([title containsString:@"Models"]  || [title containsString:@"Invoice#"]) {
         
         BOOL item_switch = [[section_item objectForKey:@"switch"] boolValue];
         if (item_switch == YES) {