|
@@ -7299,7 +7299,7 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
|
|
|
NSString *price = params[@"price"];
|
|
NSString *price = params[@"price"];
|
|
|
price_min = 0;
|
|
price_min = 0;
|
|
|
price_max = MAXFLOAT;
|
|
price_max = MAXFLOAT;
|
|
|
- if (appDelegate.user) {
|
|
|
|
|
|
|
+ if (appDelegate.user && price != nil) {
|
|
|
NSArray *priceTypeArray = [self get_contact_default_price_type:nil db:db];
|
|
NSArray *priceTypeArray = [self get_contact_default_price_type:nil db:db];
|
|
|
NSMutableString *priceName = [NSMutableString string];
|
|
NSMutableString *priceName = [NSMutableString string];
|
|
|
for (int i = 0; i < priceTypeArray.count; i++) {
|
|
for (int i = 0; i < priceTypeArray.count; i++) {
|
|
@@ -7351,7 +7351,7 @@ NSString* gprice = [self get_portfolio_price :appDelegate.contact_id item_id:ite
|
|
|
where =[NSString stringWithFormat:@"%@ %@ %@ %@ %@ %@ and is_active = 1",cateWhere,best_seller,alert,available_condition,qty,price];
|
|
where =[NSString stringWithFormat:@"%@ %@ %@ %@ %@ %@ and is_active = 1",cateWhere,best_seller,alert,available_condition,qty,price];
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ DebugLog(@"offline category where: %@",where);
|
|
|
count = [iSalesDB get_recordcount:db table:@"product" where:where];
|
|
count = [iSalesDB get_recordcount:db table:@"product" where:where];
|
|
|
|
|
|
|
|
if (!appDelegate.user) {
|
|
if (!appDelegate.user) {
|