Просмотр исходного кода

170209
Change Availability check message.

Ray Zhang 9 лет назад
Родитель
Сommit
6837333d0b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      RedAnt ERP Mobile/common/Functions/modelDetail/DetailHeaderCell.m

+ 2 - 2
RedAnt ERP Mobile/common/Functions/modelDetail/DetailHeaderCell.m

@@ -380,7 +380,7 @@
                     if(c<count)
                     {
                         
-                        UIAlertView * alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Availability %@",ct ] message:NSLocalizedString(@"Confirm add to cart. ", nil) delegate:self cancelButtonTitle:NSLocalizedString(@"Cancel", nil) otherButtonTitles:NSLocalizedString(@"Confirm", nil), nil];
+                        UIAlertView * alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Availability %@",ct ] message:NSLocalizedString(@"Item is OUT OF STOCK and not available to order from NPD.\nAdd to cart anyway?", nil) delegate:self cancelButtonTitle:NSLocalizedString(@"No", nil) otherButtonTitles:NSLocalizedString(@"Yes", nil), nil];
                         
                         // alert.
                         
@@ -540,7 +540,7 @@
         
         
         
-        UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"Availability %@",ct ] message:@"Confirm add to cart." preferredStyle:UIAlertControllerStyleAlert];
+        UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"Availability %@",ct ] message:@"Item is OUT OF STOCK and not available to order from NPD.\nAdd to cart anyway?" preferredStyle:UIAlertControllerStyleAlert];
         
         UIAlertAction *alertthree = [UIAlertAction actionWithTitle:@"Yes" style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
             [self addtocart:count];