Explorar el Código

ERP MOBILE
关闭scanner 调试开关
cart 价格刷新通知和新方式统一
去掉部分cart 冗余逻辑

Ray Zhang hace 7 años
padre
commit
7b351bd4a4
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

+ 12 - 0
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -1520,6 +1520,12 @@
                         
                         
                     }
+#ifdef RA_NOTIFICATION
+                    [ActiveViewController Notify:@"OrderListViewController" Message:RA_NOTIFICATION_RELOAD_DATA];
+#else
+                    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+                    [((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
+#endif
                     //[RAUtils message_alert:nil title:@"Order Canceled" controller:self] ;
                     //[self ReloadData];
                     
@@ -2870,6 +2876,12 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
                         }
                         [self.itemListTable reloadData];
                         [self refresh_total];
+#ifdef RA_NOTIFICATION
+                        [ActiveViewController Notify:@"OrderListViewController" Message:RA_NOTIFICATION_RELOAD_DATA];
+#else
+                        AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+                        [((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
+#endif
                         //                        [self reload_data];
                     }
                     else