Преглед изворни кода

170209
Change Availability check message.

Ray Zhang пре 9 година
родитељ
комит
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)
                     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.
                         // 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) {
         UIAlertAction *alertthree = [UIAlertAction actionWithTitle:@"Yes" style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
             [self addtocart:count];
             [self addtocart:count];