Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sai Srinivas
GEN_ERP_2025
Commits
379460f6
Commit
379460f6
authored
Jul 05, 2025
by
Sai Srinivas
Browse files
04-07-2025 By Sai Srinivas
Test cases and Order Module, Crm Module.
parent
2ccf19cc
Changes
48
Expand all
Hide whitespace changes
Inline
Side-by-side
lib/screens/order/paymentListsByMode.dart
View file @
379460f6
...
...
@@ -56,12 +56,12 @@ class _PaymentlistsbymodeState extends State<Paymentlistsbymode> {
provider
.
resetAll
,
Row
(
children:
[
InkResponse
(
onTap:
()
{
_showOptionsSheet
(
context
);
},
child:
SvgPicture
.
asset
(
"assets/svg/ic_download.svg"
,),
),
//
InkResponse(
//
onTap: () {
//
_showOptionsSheet(context);
//
},
//
child: SvgPicture.asset("assets/svg/ic_download.svg",),
//
),
InkResponse
(
onTap:
()
async
{
...
...
lib/screens/order/tpcAgentIssueList.dart
View file @
379460f6
...
...
@@ -51,12 +51,12 @@ class _TpcagentissuelistState extends State<Tpcagentissuelist> {
provider
.
resetAll
,
Row
(
children:
[
InkResponse
(
onTap:
()
{
// _showOptionsSheet(context);
},
child:
SvgPicture
.
asset
(
"assets/svg/ic_download.svg"
,),
),
//
InkResponse(
//
onTap: () {
//
// _showOptionsSheet(context);
//
},
//
child: SvgPicture.asset("assets/svg/ic_download.svg",),
//
),
],
...
...
lib/screens/order/tpcAgentListByMode.dart
View file @
379460f6
...
...
@@ -53,12 +53,12 @@ class _TpcagentlistbymodeState extends State<Tpcagentlistbymode> {
provider
.
resetAll
,
Row
(
children:
[
InkResponse
(
onTap:
()
{
// _showOptionsSheet(context);
},
child:
SvgPicture
.
asset
(
"assets/svg/ic_download.svg"
,),
),
//
InkResponse(
//
onTap: () {
//
// _showOptionsSheet(context);
//
},
//
child: SvgPicture.asset("assets/svg/ic_download.svg",),
//
),
],
...
...
lib/screens/serviceEngineer/AccountSuggestions.dart
View file @
379460f6
...
...
@@ -47,7 +47,7 @@ class _AccountsuggestionsState extends State<Accountsuggestions> {
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
color:
AppColors
.
text_field_color
,
borderRadius:
BorderRadius
.
circular
(
1
6
),
borderRadius:
BorderRadius
.
circular
(
1
4
),
border:
searchFocusNode
.
hasFocus
?
Border
.
all
(
color:
AppColors
.
app_blue
,
width:
0.5
)
...
...
lib/screens/serviceEngineer/PaymentDetails.dart
View file @
379460f6
This diff is collapsed.
Click to expand it.
lib/screens/serviceEngineer/VisitDetails.dart
View file @
379460f6
This diff is collapsed.
Click to expand it.
lib/services/api_calling.dart
View file @
379460f6
...
...
@@ -105,6 +105,7 @@ import '../Models/ordersModels/ordersPdiIdByEngNumberResponse.dart';
import
'../Models/ordersModels/paymentDetailsByModeFilterResponse.dart'
;
import
'../Models/ordersModels/paymentListByModeFilterResponse.dart'
;
import
'../Models/ordersModels/paymentListByModeResponse.dart'
;
import
'../Models/ordersModels/technicianAddPaymentResendOTPResponse.dart'
;
import
'../Notifiers/financeProvider/approveRejectPaymentRequestResponse.dart'
;
import
'../Utils/commonServices.dart'
;
...
...
@@ -928,6 +929,7 @@ class ApiCalling {
'gen_id'
:
(
gen_id
).
toString
(),
'account_id'
:
(
account_id
).
toString
(),
};
print
(
data
);
final
res
=
await
post
(
data
,
technicianAddPaymentUrl
,
{});
if
(
res
!=
null
)
{
// debugPrint(res.body);
...
...
@@ -986,7 +988,7 @@ class ApiCalling {
// debugPrint("Null Response");
// return null;
// }
print
(
"send otp:
${data}
"
);
if
(
payment_proof
!=
null
)
{
res
=
await
postImageNew
(
data
,
...
...
@@ -998,14 +1000,15 @@ class ApiCalling {
print
(
"Add Payment
$res
"
);
res
=
jsonDecode
(
res
);
return
TechnicianAddPaymentCollectionResponse
.
fromJson
(
res
);
}
else
{
print
(
"Add Payment
$res
"
);
res
=
await
post
(
data
,
technicianAddPaymentCollectionUrl
,
{});
res
=
jsonDecode
(
res
.
body
);
return
TechnicianAddPaymentCollectionResponse
.
fromJson
(
res
);
//
return TechnicianAddPaymentCollectionResponse.fromJson(res);
}
return
TechnicianAddPaymentCollectionResponse
.
fromJson
(
res
);
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
...
...
@@ -1041,6 +1044,33 @@ class ApiCalling {
return
null
;
}
}
static
Future
<
Technicianaddpaymentresendotpresponse
?>
TechnicianPaymentOTPResendAPI
(
empId
,
session
,
payment_collection_id
,
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'payment_collection_id'
:
(
payment_collection_id
).
toString
(),
};
final
res
=
await
post
(
data
,
technicianAddPaymentResendOTPUrl
,
{});
if
(
res
!=
null
)
{
debugPrint
(
"OTP
${res.body}
"
);
return
Technicianaddpaymentresendotpresponse
.
fromJson
(
jsonDecode
(
res
.
body
),
);
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
PaymentCollectionResponse
?>
paymentCollectionListAPI
(
empId
,
...
...
@@ -1165,9 +1195,10 @@ class ApiCalling {
'type'
:
(
type
).
toString
(),
'account_id'
:
(
account_id
).
toString
(),
};
print
(
data
);
final
res
=
await
post
(
data
,
technicianAddContactUrl
,
{});
if
(
res
!=
null
)
{
//
debugPrint(res.body);
debugPrint
(
res
.
body
);
return
AddContactResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
...
...
@@ -2073,7 +2104,7 @@ class ApiCalling {
};
final
res
=
await
post
(
data
,
commonAccountListUrl
,
{});
if
(
res
!=
null
)
{
debugPrint
(
res
.
body
);
debugPrint
(
"adad:
${
res.body
}
"
);
return
commonAccountlistResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
...
...
lib/services/api_names.dart
View file @
379460f6
...
...
@@ -44,6 +44,7 @@ const technicianMonthlyVisitsUrl= "${baseUrl}home/technician_monthly_visits";
const
technicianNearbyGeneratorsUrl
=
"
${baseUrl}
home/technician_nearby_generators"
;
const
technicianAddPaymentUrl
=
"
${baseUrl}
home/technician_add_payment_det"
;
const
technicianAddPaymentCollectionUrl
=
"
${baseUrl}
home/technician_add_payment_collection"
;
const
technicianAddPaymentResendOTPUrl
=
"
${baseUrl}
home/technician_add_payment_collection_resend_otp"
;
const
technicianPaymentCollectionOtpUrl
=
"
${baseUrl}
home/technician_payment_collection_validate_otp"
;
const
technicianPaymentCollectionUrl
=
"
${baseUrl}
home/technician_payment_collection_list"
;
const
technicianWalletCollectionUrl
=
"
${baseUrl}
home/technician_payment_collection_wallet"
;
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment