Browse Source

1.修改Cart Edit Price刷新。

Pen Li 8 năm trước cách đây
mục cha
commit
d7ee74e6e8

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


+ 1 - 1
RedAnt ERP Mobile/common/Functions/cart/BundleModelViewController.m

@@ -225,7 +225,7 @@
     if([ [NSString stringWithFormat:@"%@", [item_json valueForKey:@"unit_price"] ] isEqualToString:@"No Price"])
         cell.labelPrice.text=@"No Price";
     else
-        cell.labelPrice.text=[NSString stringWithFormat:@"$ %.2f",[[item_json valueForKey:@"unit_price"] floatValue]];
+        cell.labelPrice.text=[NSString stringWithFormat:@"$%.2f",[[item_json valueForKey:@"unit_price"] floatValue]];
     cell.labelQTY.text=[NSString stringWithFormat:@"%d",[[item_json valueForKey:@"modulus"] intValue]];
     
     cell.labelDescription.text = [item_json valueForKey:@"description"];

+ 3 - 2
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -2162,8 +2162,9 @@
                          [item_json setValue:notes forKey:@"note"];
                         self.content_arr[indexPath.row ] = item_json;
                         tableView.editing = false;
-                        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
-                        [self refresh_total];
+//                        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
+//                        [self refresh_total];
+                        [weakself reload_data];
                     }
                     else
                     {