소스 검색

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

Pen Li 8 년 전
부모
커밋
5efcd65ba3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      RedAnt ERP Mobile/common/Functions/order/OrderDetailViewController.m

+ 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];
     }