|
|
@@ -383,9 +383,9 @@
|
|
|
|
|
|
int status_code = [[self.content_data valueForKey:@"orderStatus"] intValue];
|
|
|
NSString* alertthreetitle=@"Without Thumbnails";
|
|
|
- if(appDelegate.user_type==USER_ROLE_CUSTOMER&& status_code==1)
|
|
|
+ if(appDelegate.user_type==USER_ROLE_CUSTOMER&& (status_code==1 ||status_code==0))
|
|
|
{
|
|
|
- alertthreetitle=@"Receipt";
|
|
|
+ alertthreetitle=@"Show Receipt";
|
|
|
}
|
|
|
UIAlertAction *alertthree = [UIAlertAction actionWithTitle:alertthreetitle style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
|
|
|
|
|
|
@@ -414,7 +414,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- if(appDelegate.user_type==USER_ROLE_CUSTOMER&& status_code==1)//[status isEqualToString:@"Saved Order"])
|
|
|
+ if(appDelegate.user_type==USER_ROLE_CUSTOMER&& (status_code==1 ||status_code==0))//[status isEqualToString:@"Saved Order"])
|
|
|
{
|
|
|
[alertControl addAction:alertthree];
|
|
|
[alertControl addAction:alertCancel];
|