瀏覽代碼

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