|
@@ -5767,10 +5767,11 @@
|
|
|
item_id = sqlite3_column_int(stmt, 0);
|
|
item_id = sqlite3_column_int(stmt, 0);
|
|
|
}];
|
|
}];
|
|
|
|
|
|
|
|
|
|
+ sqlite3 *db = [iSalesDB get_db];
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- NSDictionary* bsubtotaljson=[self model_subtotal:item_id count:item_count db:[iSalesDB get_db] compute_part:true];
|
|
|
|
|
|
|
+ NSDictionary* bsubtotaljson=[self model_subtotal:item_id count:item_count db:db compute_part:true];
|
|
|
|
|
|
|
|
|
|
+ [iSalesDB close_db:db];
|
|
|
|
|
|
|
|
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
|
|
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
|
|
|
[dic setValue:[NSNumber numberWithInteger:ret] forKey:@"result"];
|
|
[dic setValue:[NSNumber numberWithInteger:ret] forKey:@"result"];
|