update cargo type form from rate, update carton info and form
This commit is contained in:
@@ -11,6 +11,8 @@ import 'package:fcs/pagination/paginator_listener.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:path/path.dart' as Path;
|
||||
|
||||
import '../../../helpers/shared_pref.dart';
|
||||
|
||||
class PickupModel extends BaseModel {
|
||||
final log = Logger('PickupModel');
|
||||
PaginatorListener<Pickup>? pickups;
|
||||
@@ -86,6 +88,9 @@ class PickupModel extends BaseModel {
|
||||
}
|
||||
|
||||
Future<List<Pickup>> searchPickup(String term) async {
|
||||
if (term != '') {
|
||||
await SharedPref.saveRecentSearch('pickup_search', term);
|
||||
}
|
||||
Future<List<Pickup>> pickups =
|
||||
Services.instance.pickupService.searchPickup(term);
|
||||
return pickups;
|
||||
|
||||
Reference in New Issue
Block a user