fix: order
This commit is contained in:
parent
d7cd6ce4f2
commit
afeccac4aa
@ -195,7 +195,8 @@ class OrderRemoteDatasource {
|
|||||||
|
|
||||||
// New Api
|
// New Api
|
||||||
Future<Either<String, OrderDetailResponseModel>> createOrder(
|
Future<Either<String, OrderDetailResponseModel>> createOrder(
|
||||||
OrderRequestModel orderModel) async {
|
OrderRequestModel orderModel,
|
||||||
|
) async {
|
||||||
final authData = await AuthLocalDataSource().getAuthData();
|
final authData = await AuthLocalDataSource().getAuthData();
|
||||||
final url = '${Variables.baseUrl}/api/v1/orders';
|
final url = '${Variables.baseUrl}/api/v1/orders';
|
||||||
|
|
||||||
@ -274,7 +275,8 @@ class OrderRemoteDatasource {
|
|||||||
'page': page,
|
'page': page,
|
||||||
'limit': limit,
|
'limit': limit,
|
||||||
'status': status,
|
'status': status,
|
||||||
'outlet_id': authData.user?.outletId,
|
'date_from': "05-08-2025",
|
||||||
|
'date_to': "05-08-2025",
|
||||||
},
|
},
|
||||||
options: Options(
|
options: Options(
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class OrderRequestModel {
|
|||||||
"customer_name": customerName,
|
"customer_name": customerName,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (customerId != null || customerId != "") {
|
if (customerId != null && customerId != "") {
|
||||||
data["customer_id"] = customerId;
|
data["customer_id"] = customerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user