Parcourir la source

1.修改NPD Customer账号不能Copy Order。

Pen Li il y a 8 ans
Parent
commit
5efcd65ba3

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

@@ -238,7 +238,7 @@
     //   [items addObject:fixedItem];
     [items addObject:self.btnSign];
     //    [items addObject:fixedItem];
-    if (appDelegate.user_type != USER_ROLE_CUSTOMER) {
+    if ((appDelegate.user_type == USER_ROLE_CUSTOMER && appDelegate.customer_type == CustomerTypeCustomer) || appDelegate.user_type == USER_ROLE_EMPLOYEE) {
          [items addObject:self.btnCopy];
     }