|
@@ -2018,7 +2018,7 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:
|
|
|
}
|
|
}
|
|
|
} else { // 解锁
|
|
} else { // 解锁
|
|
|
if ([Singleton sharedInstance].customer_can_see_sales_Order) { // 有查看Sales order 权限
|
|
if ([Singleton sharedInstance].customer_can_see_sales_Order) { // 有查看Sales order 权限
|
|
|
- if (self.orderTypeSegmentControl.numberOfSegments == 1) {
|
|
|
|
|
|
|
+ if (self.orderTypeSegmentControl.numberOfSegments == 1 && !self.table_order.isEditing) {
|
|
|
[self.orderTypeSegmentControl insertSegmentWithTitle:@"Purchase Order" atIndex:1 animated:YES];
|
|
[self.orderTypeSegmentControl insertSegmentWithTitle:@"Purchase Order" atIndex:1 animated:YES];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|