|
@@ -26,12 +26,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
NSDateFormatter* formatter = [[NSDateFormatter alloc]init];
|
|
NSDateFormatter* formatter = [[NSDateFormatter alloc]init];
|
|
|
- [formatter setDateFormat:@"yyyyMMdd"];
|
|
|
|
|
|
|
+ [formatter setDateFormat:@"yyMMdd"];
|
|
|
NSString* date = [formatter stringFromDate:[NSDate date]];
|
|
NSString* date = [formatter stringFromDate:[NSDate date]];
|
|
|
for(int i=1;i<999;i++)
|
|
for(int i=1;i<999;i++)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- soid=[NSString stringWithFormat:@"OFF%@%3d",date,i];
|
|
|
|
|
|
|
+ soid=[NSString stringWithFormat:@"OFF%@%4d",date,i];
|
|
|
soid= [soid stringByReplacingOccurrencesOfString:@" " withString:@"0"];
|
|
soid= [soid stringByReplacingOccurrencesOfString:@" " withString:@"0"];
|
|
|
int count=[iSalesDB get_recordcount:db table:@"offline_order" where:[NSString stringWithFormat:@"so_id='%@'",soid]];
|
|
int count=[iSalesDB get_recordcount:db table:@"offline_order" where:[NSString stringWithFormat:@"so_id='%@'",soid]];
|
|
|
if(count==0)
|
|
if(count==0)
|
|
@@ -539,7 +539,7 @@
|
|
|
count++;
|
|
count++;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- ret[@"count"]=[NSNumber numberWithInt:arr_soid.count ];
|
|
|
|
|
|
|
+ ret[@"count"]=[NSNumber numberWithInt:count ];
|
|
|
ret[@"result"]=[NSNumber numberWithInt:RESULT_TRUE ];
|
|
ret[@"result"]=[NSNumber numberWithInt:RESULT_TRUE ];
|
|
|
|
|
|
|
|
}
|
|
}
|