Commit 3ad2ea55 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

ios Changes

parent 38d17dba
......@@ -31,7 +31,7 @@ class Paymentdetails extends StatefulWidget {
class _PaymentdetailsState extends State<Paymentdetails> {
Dropdowntheme ddtheme = Dropdowntheme();
List<FocusNode> focusNodes = List.generate(7, (index) => FocusNode(),);
List<FocusNode> focusNodes = List.generate(7, (index) => FocusNode());
@override
void initState() {
// TODO: implement initState
......@@ -70,7 +70,7 @@ class _PaymentdetailsState extends State<Paymentdetails> {
},
child: SafeArea(
top: false,
bottom: Platform.isIOS?false:true,
bottom: Platform.isIOS ? false : true,
child: Scaffold(
resizeToAvoidBottomInset: true,
appBar: appbar(context, "Payment Details"),
......@@ -87,8 +87,14 @@ class _PaymentdetailsState extends State<Paymentdetails> {
);
},
child: Container(
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
margin: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
padding: EdgeInsets.symmetric(
horizontal: 10,
vertical: 10,
),
margin: EdgeInsets.symmetric(
horizontal: 10,
vertical: 10,
),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
......@@ -129,7 +135,9 @@ class _PaymentdetailsState extends State<Paymentdetails> {
],
),
items: [
...provider.contactsDropDown.map((contacts) {
...provider.contactsDropDown.map((
contacts,
) {
return DropdownMenuItem<Contacts>(
value: contacts,
child: Column(
......@@ -156,15 +164,12 @@ class _PaymentdetailsState extends State<Paymentdetails> {
);
}).toList(),
DropdownMenuItem<Contacts>(
onTap: () {
},
onTap: () {},
value: null,
// No value associated with the button
enabled: false,
// To disable selecting this item
child: InkWell(
onTap: () {
_addContactSheet(context);
},
......@@ -175,9 +180,8 @@ class _PaymentdetailsState extends State<Paymentdetails> {
color: AppColors.app_blue,
width: 0.5,
),
borderRadius: BorderRadius.circular(
12,
),
borderRadius:
BorderRadius.circular(12),
),
padding: const EdgeInsets.symmetric(
vertical: 5,
......@@ -203,14 +207,16 @@ class _PaymentdetailsState extends State<Paymentdetails> {
// value: provider.selectContact,
value:
provider.contactsDropDown.contains(
provider.selectContact
provider.selectContact,
)
? provider.selectContact
: null,
// The selected value is now the entire 'Contacts' object
onChanged: (Contacts? value) {
if (value != null) {
if (provider.contactsDropDown.isNotEmpty) {
if (provider
.contactsDropDown
.isNotEmpty) {
provider.selectContact =
value; // Set the selected contact
provider.contact =
......@@ -227,8 +233,10 @@ class _PaymentdetailsState extends State<Paymentdetails> {
},
buttonStyleData: ddtheme.buttonStyleData,
iconStyleData: ddtheme.iconStyleData,
menuItemStyleData: ddtheme.menuItemStyleData,
dropdownStyleData: ddtheme.dropdownStyleData,
menuItemStyleData:
ddtheme.menuItemStyleData,
dropdownStyleData:
ddtheme.dropdownStyleData,
),
),
],
......@@ -259,8 +267,9 @@ class _PaymentdetailsState extends State<Paymentdetails> {
items:
provider.paymentModeDropDown
.map(
(paymentMode) =>
DropdownMenuItem<PaymentModeList>(
(paymentMode) => DropdownMenuItem<
PaymentModeList
>(
value: paymentMode,
child: Text(
paymentMode.name ?? '',
......@@ -287,15 +296,18 @@ class _PaymentdetailsState extends State<Paymentdetails> {
provider.paymentModeID = value?.id;
print(
"hfjkshfg" +
provider.paymentModeID.toString(),
provider.paymentModeID
.toString(),
);
}
}
},
buttonStyleData: ddtheme.buttonStyleData,
iconStyleData: ddtheme.iconStyleData,
menuItemStyleData: ddtheme.menuItemStyleData,
dropdownStyleData: ddtheme.dropdownStyleData,
menuItemStyleData:
ddtheme.menuItemStyleData,
dropdownStyleData:
ddtheme.dropdownStyleData,
),
),
],
......@@ -315,7 +327,12 @@ class _PaymentdetailsState extends State<Paymentdetails> {
borderRadius: BorderRadius.circular(14),
),
child: Padding(
padding: const EdgeInsets.fromLTRB(10.0, 0.0, 10, 0),
padding: const EdgeInsets.fromLTRB(
10.0,
0.0,
10,
0,
),
child: TextFormField(
controller: provider.Amountcontroller,
keyboardType: TextInputType.text,
......@@ -347,7 +364,12 @@ class _PaymentdetailsState extends State<Paymentdetails> {
borderRadius: BorderRadius.circular(14),
),
child: Padding(
padding: const EdgeInsets.fromLTRB(10.0, 0.0, 10, 0),
padding: const EdgeInsets.fromLTRB(
10.0,
0.0,
10,
0,
),
child: TextFormField(
controller: provider.Referencecontroller,
keyboardType: TextInputType.text,
......@@ -396,9 +418,12 @@ class _PaymentdetailsState extends State<Paymentdetails> {
if (provider.imagePicked == 1 &&
provider.imagePath != null) ...[
Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
padding: const EdgeInsets.symmetric(
vertical: 4.0,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Text(
"${provider.imagePath}",
......@@ -434,15 +459,15 @@ class _PaymentdetailsState extends State<Paymentdetails> {
floatingActionButton: InkWell(
onTap: () {
print("clicked");
if(provider.contactID==null){
if (provider.contactID == null) {
toast(context, "Please Select Contact");
return;
}
if(provider.paymentModeID==null){
if (provider.paymentModeID == null) {
toast(context, "Please Select Payment Type");
return;
}
if(provider.image_picked==0){
if (provider.image_picked == 0) {
toast(context, "Please add attachment");
return;
}
......@@ -451,9 +476,11 @@ class _PaymentdetailsState extends State<Paymentdetails> {
provider.Referencecontroller.text,
provider.Amountcontroller.text,
);
Future.delayed(Duration(microseconds: 200), () {
if (provider.CollectionId != 0) {
showOTPSheetSheet(context);
}
});
},
child: Container(
alignment: Alignment.center,
......@@ -684,7 +711,6 @@ class _PaymentdetailsState extends State<Paymentdetails> {
provider.enteredOtp = enteredCode;
// clearText = true;
provider.OTPVerifyAPI(context);
Navigator.pop(context, true);
debugPrint("Completed");
},
......@@ -784,7 +810,6 @@ class _PaymentdetailsState extends State<Paymentdetails> {
}
Future<void> _addContactSheet(BuildContext context) {
final controllersNames = [
"Name",
"Designation",
......@@ -878,7 +903,7 @@ class _PaymentdetailsState extends State<Paymentdetails> {
),
child: TextFormField(
controller: controllers[index],
focusNode:focusNodes[index],
focusNode: focusNodes[index],
maxLength:
[
......@@ -890,15 +915,20 @@ class _PaymentdetailsState extends State<Paymentdetails> {
? 10
: 998895646546561356,
maxLines: 1,
keyboardType: [
keyboardType:
[
"Mobile Number",
"Alternate Mobile Number",
"Mobile Number",
].contains(
controllersNames[index],
)?TextInputType.numberWithOptions():TextInputType.text,
textInputAction:index==5?TextInputAction.done: TextInputAction.next,
)
? TextInputType.numberWithOptions()
: TextInputType.text,
textInputAction:
index == 5
? TextInputAction.done
: TextInputAction.next,
decoration: InputDecoration(
counterText: "",
hintText: "${hintTextNames[index]}",
......@@ -923,7 +953,9 @@ class _PaymentdetailsState extends State<Paymentdetails> {
provider.AddContactAPIFunction(
context,
widget.accountName,
widget.genId==""? widget.referenceID:widget.genId ,
widget.genId == ""
? widget.referenceID
: widget.genId,
provider.nameController.text,
provider.designationController.text,
provider.mobController.text,
......@@ -980,6 +1012,6 @@ class _PaymentdetailsState extends State<Paymentdetails> {
);
});
});
},);
});
}
}
......@@ -40,7 +40,7 @@ class _PendingcomplaintsState extends State<Pendingcomplaints> {
onWillPop: () => onBackPressed(context),
child: SafeArea(
top: false,
bottom: Platform.isIOS?false:true,
bottom: Platform.isIOS ? false : true,
child: Scaffold(
resizeToAvoidBottomInset: true,
backgroundColor: AppColors.scaffold_bg_color,
......@@ -60,7 +60,8 @@ class _PendingcomplaintsState extends State<Pendingcomplaints> {
child: SvgPicture.asset("assets/svg/scanner.svg"),
),
),
body: provider.technician_complaint_list.isNotEmpty
body:
provider.technician_complaint_list.isNotEmpty
? Container(
child: ListView.builder(
scrollDirection: Axis.vertical,
......@@ -299,7 +300,9 @@ class _PendingcomplaintsState extends State<Pendingcomplaints> {
right: 15,
top: 10,
),
padding: EdgeInsets.only( bottom: MediaQuery.of(context).viewInsets.bottom,),
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom,
),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
......@@ -357,7 +360,7 @@ class _PendingcomplaintsState extends State<Pendingcomplaints> {
MaterialPageRoute(
builder:
(context) => Paymentdetails(
accountName: "Account",
accountName: "Generator",
name: companyName,
genId: genId,
referenceID: complaintId,
......
......@@ -7,6 +7,7 @@ import 'package:generp/Utils/app_colors.dart';
import 'package:generp/Utils/commonWidgets.dart';
import 'package:provider/provider.dart';
import 'package:generp/screens/screensExports.dart';
class Serviceengineerdashboard extends StatefulWidget {
const Serviceengineerdashboard({super.key});
......@@ -30,14 +31,18 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
@override
Widget build(BuildContext context) {
return Platform.isAndroid
? WillPopScope(
onWillPop: () => onBackPressed(context),
child: SafeArea(top: false, bottom: true, child: _scaffold(context)),
)
: _scaffold(context);
}
Widget _scaffold(BuildContext context) {
return Consumer<Serviceengineerdashboardprovider>(
builder: (context, provider, child) {
return WillPopScope(
onWillPop: () => onBackPressed(context),
child: SafeArea(
top: false,
bottom: Platform.isIOS?false:true,
child: Scaffold(
return Scaffold(
resizeToAvoidBottomInset: true,
backgroundColor: AppColors.scaffold_bg_color,
appBar: AppBar(
......@@ -56,7 +61,7 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
),
),
InkResponse(
onTap: () => Navigator.pop(context,true),
onTap: () => Navigator.pop(context, true),
child: Text(
"Service Engineer",
style: TextStyle(
......@@ -168,9 +173,11 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
alignment: Alignment.topLeft,
child: Text(
"Collections & Visits",
style: TextStyle(color: Color(0xFF818181),
style: TextStyle(
color: Color(0xFF818181),
fontFamily: "JakartaMedium",
fontSize: 14),
fontSize: 14,
),
),
),
Container(
......@@ -257,13 +264,15 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
children: [
if([0,1].contains(index))...[
Text("₹",style: TextStyle(
if ([0, 1].contains(index)) ...[
Text(
"₹",
style: TextStyle(
fontSize: 14,
color: Color(textColorCodes[index]),
),),
),
),
],
Padding(
padding: EdgeInsets.only(top: 5),
......@@ -277,9 +286,10 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
),
],
),
Text(names[index],style: TextStyle(
color: Color(0xFF818181)
),),
Text(
names[index],
style: TextStyle(color: Color(0xFF818181)),
),
],
),
),
......@@ -289,7 +299,12 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
),
InkResponse(
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => Nearbygenerators(),));
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Nearbygenerators(),
),
);
},
child: Container(
height: 60,
......@@ -319,8 +334,6 @@ class _ServiceengineerdashboardState extends State<Serviceengineerdashboard> {
),
),
),
),
),
);
},
);
......
......@@ -420,7 +420,7 @@ class ApiCalling {
check_out_pic,
'check_out_pic',
);
if(res!=null){
if (res != null) {
res = jsonDecode(res);
}
......@@ -562,7 +562,7 @@ class ApiCalling {
session,
gen_hash_id,
location,
attachment
attachment,
) async {
try {
Map<String, String> data = {
......@@ -582,7 +582,7 @@ class ApiCalling {
);
res = jsonDecode(res);
return TagLocationResponse.fromJson(res);
}else{
} else {
res = await post(data, genTrackerTagLocationUrl, {});
if (res != null) {
// debugPrint(res.body);
......@@ -988,7 +988,7 @@ class ApiCalling {
// debugPrint("Null Response");
// return null;
// }
print("send otp:${data}");
print("send otp:${data}");
if (payment_proof != null) {
res = await postImageNew(
data,
......@@ -1000,9 +1000,7 @@ print("send otp:${data}");
print("Add Payment $res");
res = jsonDecode(res);
} else {
print("Add Payment $res");
res = await post(data, technicianAddPaymentCollectionUrl, {});
res = jsonDecode(res.body);
......@@ -1044,12 +1042,9 @@ print("send otp:${data}");
return null;
}
}
static Future<Technicianaddpaymentresendotpresponse?>
TechnicianPaymentOTPResendAPI(
empId,
session,
payment_collection_id,
) async {
TechnicianPaymentOTPResendAPI(empId, session, payment_collection_id) async {
try {
Map<String, String> data = {
'emp_id': (empId).toString(),
......@@ -1195,7 +1190,7 @@ print("send otp:${data}");
'type': (type).toString(),
'account_id': (account_id).toString(),
};
print(data);
print("add: $data");
final res = await post(data, technicianAddContactUrl, {});
if (res != null) {
debugPrint(res.body);
......@@ -1323,8 +1318,8 @@ print("send otp:${data}");
};
final res = await post(data, addPaymentRequestionViewUrl, {});
if (res != null) {
print("add view:${data}");
debugPrint(res.body);
// print("add view:${data}");
// debugPrint(res.body);
return addPaymentRequestionResponse.fromJson(jsonDecode(res.body));
} else {
debugPrint("Null Response");
......@@ -1624,11 +1619,8 @@ print("send otp:${data}");
}
}
static Future<paymentRequestionBankDetailsResponse?> paymentRequestionBankDetailsAPI(
empId,
session,
account_id,
) async {
static Future<paymentRequestionBankDetailsResponse?>
paymentRequestionBankDetailsAPI(empId, session, account_id) async {
try {
Map<String, String> data = {
'emp_id': (empId).toString(),
......@@ -1639,7 +1631,9 @@ print("send otp:${data}");
if (res != null) {
print("Bank Detaols ${data}");
debugPrint(res.body);
return paymentRequestionBankDetailsResponse.fromJson(jsonDecode(res.body));
return paymentRequestionBankDetailsResponse.fromJson(
jsonDecode(res.body),
);
} else {
debugPrint("Null Response");
return null;
......@@ -1951,8 +1945,6 @@ print("send otp:${data}");
}
}
static Future<DistrictsResponse?> commonAddAccountViewDistrictAPI(
empId,
session,
......@@ -2238,7 +2230,11 @@ print("send otp:${data}");
static Future<orderDashboardResponse?> ordersDashboardAPI(
empId,
session,mode,from,to,teamemployee
session,
mode,
from,
to,
teamemployee,
) async {
try {
Map<String, String> data = {
......@@ -2550,12 +2546,8 @@ print("send otp:${data}");
}
}
static Future<ordersDetailsEditOrderViewResponse?> ordersDetailsEditOrderViewAPI(
empId,
session,
order_id,
) async {
static Future<ordersDetailsEditOrderViewResponse?>
ordersDetailsEditOrderViewAPI(empId, session, order_id) async {
try {
Map<String, String> data = {
'emp_id': (empId).toString(),
......@@ -2563,22 +2555,20 @@ print("send otp:${data}");
'order_id': order_id.toString(),
};
var res = await post(data, ordersOrderDetailsEditOrderUrl, {});
if(res!=null){
return ordersDetailsEditOrderViewResponse.fromJson(jsonDecode(res.body));
}else{
if (res != null) {
return ordersDetailsEditOrderViewResponse.fromJson(
jsonDecode(res.body),
);
} else {
debugPrint("Null Response");
}
} catch (e) {
debugPrint('hello bev=bug $e ');
return null;
}
}
static Future<CommonResponse?> ordersDetailsEditOrderSubmitAPI(
empId,
session,
......@@ -2592,22 +2582,22 @@ print("send otp:${data}");
unloading,
freight,
erection,
note
note,
) async {
try {
Map<String, String> data = {
'emp_id':empId.toString(),
'session_id':session.toString(),
'order_id':order_id.toString(),
'dispatch_state_id':dispatch_state_id.toString(),
'district':district.toString(),
'sub_locality':sub_locality.toString(),
'dispatch_pincode':dispatch_pincode.toString(),
'dispatch_address':dispatch_address.toString(),
'unloading':unloading.toString(),
'freight':freight.toString(),
'erection':erection.toString(),
'note':note.toString(),
'emp_id': empId.toString(),
'session_id': session.toString(),
'order_id': order_id.toString(),
'dispatch_state_id': dispatch_state_id.toString(),
'district': district.toString(),
'sub_locality': sub_locality.toString(),
'dispatch_pincode': dispatch_pincode.toString(),
'dispatch_address': dispatch_address.toString(),
'unloading': unloading.toString(),
'freight': freight.toString(),
'erection': erection.toString(),
'note': note.toString(),
};
var res;
print("Edit Order:$data");
......@@ -2631,51 +2621,47 @@ print("send otp:${data}");
}
}
static Future<ordersDetailsDispatchOrderViewResponse?> ordersDetailsDispatchOrderViewAPI(
empId,
session,
order_id,
) async {
static Future<ordersDetailsDispatchOrderViewResponse?>
ordersDetailsDispatchOrderViewAPI(empId, session, order_id) async {
try {
Map<String, String> data = {
'emp_id':empId.toString(),
'session_id':session.toString(),
'order_id':order_id.toString(),
'emp_id': empId.toString(),
'session_id': session.toString(),
'order_id': order_id.toString(),
};
final res = await post(data, ordersOrderDetailsDispatchProductsUrl, {});
if(res!=null){
return ordersDetailsDispatchOrderViewResponse.fromJson(jsonDecode(res.body));
}else{
if (res != null) {
return ordersDetailsDispatchOrderViewResponse.fromJson(
jsonDecode(res.body),
);
} else {
debugPrint("Null Response");
}
} catch (e) {
debugPrint('hello bev=bug $e ');
return null;
}
}
static Future<ordersPdiIdByEngNumberResponse?> ordersPdiIdByEngNumberUrlAPI(
empId,
session,
engine_number,
) async {
try {
Map<String, String> data = {
'emp_id':empId.toString(),
'session_id':session.toString(),
'engine_number':engine_number.toString(),
'emp_id': empId.toString(),
'session_id': session.toString(),
'engine_number': engine_number.toString(),
};
final res = await post(data, ordersPdiIdByEngNumberUrl, {});
if(res!=null){
if (res != null) {
return ordersPdiIdByEngNumberResponse.fromJson(jsonDecode(res.body));
}else{
} else {
debugPrint("Null Response");
}
} catch (e) {
debugPrint('hello bev=bug $e ');
return null;
......@@ -3308,7 +3294,9 @@ print("send otp:${data}");
empId,
session,
mode,
from,to,teamemployee
from,
to,
teamemployee,
) async {
try {
Map<String, String> data = {
......@@ -3361,7 +3349,7 @@ print("send otp:${data}");
static Future<crmUniversalSearchResponse?> crmUniversalSearchAPI(
empId,
session,
q
q,
) async {
try {
Map<String, String> data = {
......@@ -4231,7 +4219,8 @@ print("send otp:${data}");
}
}
static Future<crmProspectDetailsAddFollowUpAppointmentResponse?> crmProspectDetailsFollowupNextAppointmentAPI(
static Future<crmProspectDetailsAddFollowUpAppointmentResponse?>
crmProspectDetailsFollowupNextAppointmentAPI(
empId,
session,
nextapp,
......@@ -4247,20 +4236,26 @@ print("send otp:${data}");
Map<String, String> data = {
'emp_id': (empId).toString(),
'session_id': (session).toString(),
'nextapp':nextapp.toString(),
'orderstatus':orderstatus.toString(),
'lead_id':lead_id.toString(),
'followup_feedback':followup_feedback.toString(),
'followup_type':followup_type.toString(),
'followupintime':followupintime.toString(),
'loc':loc.toString(),
'followup_status':followup_status.toString(),
};
final res = await post(data, crmProspectDetailsFollowupNextAppointmentUrl, {});
'nextapp': nextapp.toString(),
'orderstatus': orderstatus.toString(),
'lead_id': lead_id.toString(),
'followup_feedback': followup_feedback.toString(),
'followup_type': followup_type.toString(),
'followupintime': followupintime.toString(),
'loc': loc.toString(),
'followup_status': followup_status.toString(),
};
final res = await post(
data,
crmProspectDetailsFollowupNextAppointmentUrl,
{},
);
if (res != null) {
print("Filter:${data}");
debugPrint(res.body);
return crmProspectDetailsAddFollowUpAppointmentResponse.fromJson(jsonDecode(res.body));
return crmProspectDetailsAddFollowUpAppointmentResponse.fromJson(
jsonDecode(res.body),
);
} else {
debugPrint("Null Response");
return null;
......@@ -4271,7 +4266,8 @@ print("send otp:${data}");
}
}
static Future<CommonResponse?> crmProspectDetailsFollowupNextAppointmentOtherCaseAPI(
static Future<CommonResponse?>
crmProspectDetailsFollowupNextAppointmentOtherCaseAPI(
empId,
session,
nextapp,
......@@ -4292,21 +4288,25 @@ print("send otp:${data}");
Map<String, String> data = {
'emp_id': (empId).toString(),
'session_id': (session).toString(),
'nextapp':nextapp.toString(),
'orderstatus':orderstatus.toString(),
'lead_id':lead_id.toString(),
'followup_feedback':followup_feedback.toString(),
'followup_type':followup_type.toString(),
'followupintime':followupintime.toString(),
'loc':loc.toString(),
'followup_status':followup_status.toString(),
'appointmentset':appointmentset.toString(),
'app_date':app_date.toString(),
'sms':sms.toString(),
'app_note':app_note.toString(),
'in_t':in_t.toString(),
};
final res = await post(data, crmProspectDetailsFollowupNextAppointmentUrl, {});
'nextapp': nextapp.toString(),
'orderstatus': orderstatus.toString(),
'lead_id': lead_id.toString(),
'followup_feedback': followup_feedback.toString(),
'followup_type': followup_type.toString(),
'followupintime': followupintime.toString(),
'loc': loc.toString(),
'followup_status': followup_status.toString(),
'appointmentset': appointmentset.toString(),
'app_date': app_date.toString(),
'sms': sms.toString(),
'app_note': app_note.toString(),
'in_t': in_t.toString(),
};
final res = await post(
data,
crmProspectDetailsFollowupNextAppointmentUrl,
{},
);
if (res != null) {
print("Filter:${data}");
debugPrint(res.body);
......@@ -4325,14 +4325,14 @@ print("send otp:${data}");
empId,
session,
emp_loc,
radius
radius,
) async {
try {
Map<String, String> data = {
'emp_id': (empId).toString(),
'session_id': (session).toString(),
'emp_loc': (emp_loc).toString(),
'radius':radius.toString()
'radius': radius.toString(),
};
final res = await post(data, crmNearbyOpenLeadsUrl, {});
if (res != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment