dev #1

Merged
aefril merged 128 commits from dev into main 2025-08-13 17:19:48 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit afeccac4aa - Show all commits

View File

@ -195,7 +195,8 @@ class OrderRemoteDatasource {
// New Api
Future<Either<String, OrderDetailResponseModel>> createOrder(
OrderRequestModel orderModel) async {
OrderRequestModel orderModel,
) async {
final authData = await AuthLocalDataSource().getAuthData();
final url = '${Variables.baseUrl}/api/v1/orders';
@ -274,7 +275,8 @@ class OrderRemoteDatasource {
'page': page,
'limit': limit,
'status': status,
'outlet_id': authData.user?.outletId,
'date_from': "05-08-2025",
'date_to': "05-08-2025",
},
options: Options(
headers: {

View File

@ -54,7 +54,7 @@ class OrderRequestModel {
"customer_name": customerName,
};
if (customerId != null || customerId != "") {
if (customerId != null && customerId != "") {
data["customer_id"] = customerId;
}