Sign page: added user check for accepting notes of a delivery
This commit is contained in:
@ -3,18 +3,16 @@ import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:hl_lieferservice/feature/authentication/exceptions.dart';
|
||||
import 'package:hl_lieferservice/services/erpframe.dart';
|
||||
import 'package:hl_lieferservice/util.dart';
|
||||
import 'package:http/http.dart';
|
||||
|
||||
import '../../../dto/basic_response.dart';
|
||||
import '../../../dto/car_add.dart';
|
||||
import '../../../dto/car_add_response.dart';
|
||||
import '../../../dto/car_get_response.dart';
|
||||
import '../../../model/car.dart';
|
||||
|
||||
class CarService extends ErpFrameService {
|
||||
CarService({required super.config});
|
||||
class CarService {
|
||||
CarService();
|
||||
|
||||
Future<Car> addCar(String plate, int teamId) async {
|
||||
try {
|
||||
@ -122,7 +120,7 @@ class CarService extends ErpFrameService {
|
||||
var response = await post(
|
||||
urlBuilder("_web_getCars"),
|
||||
headers: getSessionOrThrow(),
|
||||
body:{"team_id": teamId.toString()},
|
||||
body: {"team_id": teamId.toString()},
|
||||
);
|
||||
|
||||
if (response.statusCode == HttpStatus.unauthorized) {
|
||||
|
||||
Reference in New Issue
Block a user