فهرست منبع

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