|
|
@@ -792,7 +792,7 @@ repeat:{
|
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
|
|
|
|
[params setValue:order_id forKey:@"orderId"];
|
|
|
- [params setValue:order_code forKey:@"order_code"];
|
|
|
+ [params setValue:order_code forKey:@"orderCode"];
|
|
|
// [params setValue:sourceid forKey:@"sourceid"];
|
|
|
// [params setValue:editor forKey:@"editor"];
|
|
|
NSData* json=[self get_json:URL_CANCEL_ORDER parameters:params];
|
|
|
@@ -1666,7 +1666,7 @@ repeat:{
|
|
|
// NSDictionary *jsobj = [NSJSONSerialization JSONObjectWithData:json options:NSJSONReadingMutableLeaves error:&error];
|
|
|
// return jsobj;
|
|
|
//}
|
|
|
-+(NSDictionary*) portfolio_setPrice:(NSString*) watchlist_id price:(float) price discount:(float) discount QTY:(int)qty notes:(NSString*)notes
|
|
|
++(NSDictionary*) portfolio_setPrice:(NSString*) watchlist_id price:(float) price discount:(float) discount QTY:(int)qty qty_p:(float) qty_p notes:(NSString*)notes
|
|
|
{
|
|
|
if(![self IsNetworkAvailable])
|
|
|
return [RAUtils error_json:RESULT_NET_NOTAVAILABLE err_msg:nil];
|
|
|
@@ -1683,10 +1683,13 @@ repeat:{
|
|
|
|
|
|
if(notes.length>0)
|
|
|
[params setValue:notes forKey:@"notes"];
|
|
|
- [params setValue:[NSString stringWithFormat:@"%f",price] forKey:@"price"];
|
|
|
+ if(price>=0)
|
|
|
+ [params setValue:[NSString stringWithFormat:@"%f",price] forKey:@"price"];
|
|
|
|
|
|
[params setValue:[NSString stringWithFormat:@"%f",discount] forKey:@"discount"];
|
|
|
-
|
|
|
+ if(qty_p>=0)
|
|
|
+ [params setValue:[NSString stringWithFormat:@"%f",qty_p] forKey:@"available_percent"];
|
|
|
+ if(qty>=0)
|
|
|
[params setValue:[NSString stringWithFormat:@"%d",qty] forKey:@"available_qty"];
|
|
|
|
|
|
NSData* json=[self get_json:URL_PORTFOLIO_SET_PRICE parameters:params];
|
|
|
@@ -1859,7 +1862,7 @@ repeat:{
|
|
|
// // [params setValue:appDelegate.contact_id forKey:@"contactId"];
|
|
|
// if(appDelegate.password!=nil)
|
|
|
// [params setValue:appDelegate.password forKey:@"password"];
|
|
|
- [params setValue:vid forKey:@"vid"];
|
|
|
+ [params setValue:vid forKey:@"downSerial"];
|
|
|
NSData* json=[self get_json:URL_DOWNLOAD_OFFLINE parameters:params];
|
|
|
if(json==nil)
|
|
|
return nil;
|
|
|
@@ -2082,7 +2085,7 @@ repeat:{
|
|
|
// return jsobj;
|
|
|
//
|
|
|
//}
|
|
|
-+(NSDictionary*)Category: (NSString*) category customid:(int) customid price_template:(int) price_template sort:(int) sort_by filter:(NSString*) filter keyword:(NSString*) keyword offset:(long) offset limit:(long) limit alert:(NSString*)alert qty:(NSString*)qty available:(NSString*)available price:(NSString*)price
|
|
|
++(NSDictionary*)Category: (NSString*) category customid:(int) customid price_template:(int) price_template sort:(int) sort_by filter:(NSString*) filter keyword:(NSString*) keyword offset:(long) offset limit:(long) limit alert:(NSString*)alert qty:(NSString*)qty available:(NSString*)available price:(NSString*)price bestseller:(NSString*)bestseller modelname:(NSString*) modelname modeldescrip:(NSString*)modeldescrip
|
|
|
{
|
|
|
|
|
|
|
|
|
@@ -2106,6 +2109,9 @@ repeat:{
|
|
|
[params setValue:qty forKey:@"sold_by_qty"];
|
|
|
[params setValue:available forKey:@"available"];
|
|
|
[params setValue:price forKey:@"price"];
|
|
|
+ [params setValue:bestseller forKey:@"bestseller"];
|
|
|
+ [params setValue:modelname forKey:@"modelName"];
|
|
|
+ [params setValue:modeldescrip forKey:@"modelDescription"];
|
|
|
|
|
|
[params setValue:[NSString stringWithFormat:@"%d",price_template] forKey:@"price_template"];
|
|
|
[params setValue:[NSString stringWithFormat:@"%d",customid] forKey:@"custom_id"];
|
|
|
@@ -2158,9 +2164,9 @@ repeat:{
|
|
|
[params setValue:[NSString stringWithFormat:@"%ld",limit] forKey:@"limit"];
|
|
|
[params setValue:[NSString stringWithFormat:@"%ld",offset] forKey:@"offset"];
|
|
|
if(matchfull)
|
|
|
- [params setValue:@"true" forKey:@"full_world"];
|
|
|
+ [params setValue:@"true" forKey:@"exactMatch"];
|
|
|
else
|
|
|
- [params setValue:@"false" forKey:@"full_world"];
|
|
|
+ [params setValue:@"false" forKey:@"exactMatch"];
|
|
|
NSData* json=[self get_json:URL_SEARCH parameters:params];
|
|
|
if(json==nil)
|
|
|
return nil;
|
|
|
@@ -2169,7 +2175,7 @@ repeat:{
|
|
|
return jsobj;
|
|
|
}
|
|
|
|
|
|
-+(NSDictionary*)ItemSearch:(long ) offset limit :(long)limit covertype:(NSString* ) covertype ctgid:(NSString*)ctgid modelname:(NSString*) modelname modeldescrip:(NSString*)modeldescrip alert:(NSString*)alert available:(NSString*)available
|
|
|
++(NSDictionary*)ItemSearch:(long ) offset limit :(long)limit covertype:(NSString* ) covertype ctgid:(NSString*)ctgid modelname:(NSString*) modelname modeldescrip:(NSString*)modeldescrip alert:(NSString*)alert qty:(NSString*)qty available:(NSString*)available price:(NSString*)price bestseller:(NSString*)bestseller
|
|
|
{
|
|
|
|
|
|
// for debug
|
|
|
@@ -2187,6 +2193,11 @@ repeat:{
|
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
|
if(appDelegate.order_code!=nil)
|
|
|
[params setValue:appDelegate.order_code forKey:@"orderCode"];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// [params setValue:[NSString stringWithFormat:@"%d",price_template] forKey:@"price_template"];
|
|
|
// [params setValue:[NSString stringWithFormat:@"%d",customid] forKey:@"custom_id"];
|
|
|
// [params setValue:[NSString stringWithFormat:@"%@",category] forKey:@"category"];
|
|
|
@@ -2197,7 +2208,10 @@ repeat:{
|
|
|
[params setValue:modelname forKey:@"modelName"];
|
|
|
[params setValue:modeldescrip forKey:@"modelDescription"];
|
|
|
[params setValue:alert forKey:@"alert"];
|
|
|
+ [params setValue:qty forKey:@"sold_by_qty"];
|
|
|
[params setValue:available forKey:@"available"];
|
|
|
+ [params setValue:price forKey:@"price"];
|
|
|
+ [params setValue:bestseller forKey:@"bestseller"];
|
|
|
|
|
|
[params setValue:[NSString stringWithFormat:@"%ld",limit] forKey:@"limit"];
|
|
|
[params setValue:[NSString stringWithFormat:@"%ld",offset] forKey:@"offset"];
|