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
7210793a
Commit
7210793a
authored
Sep 17, 2025
by
Sai Srinivas
Browse files
17-09
parent
185e0896
Changes
285
Show whitespace changes
Inline
Side-by-side
lib/Models/ordersModels/paymentListByModeFilterResponse.dart
View file @
7210793a
...
...
@@ -9,7 +9,7 @@ class paymentListByModeFilterResponse {
if
(
json
[
'employees'
]
!=
null
)
{
employees
=
<
Employees
>[];
json
[
'employees'
].
forEach
((
v
)
{
employees
!.
add
(
new
Employees
.
fromJson
(
v
));
employees
!.
add
(
Employees
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -17,12 +17,12 @@ class paymentListByModeFilterResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
employees
!=
null
)
{
data
[
'employees'
]
=
this
.
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
employees
!=
null
)
{
data
[
'employees'
]
=
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -39,9 +39,9 @@ class Employees {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
lib/Models/ordersModels/paymentListByModeResponse.dart
View file @
7210793a
...
...
@@ -10,19 +10,19 @@ class paymentListByModeResponse {
if
(
json
[
'order_list'
]
!=
null
)
{
orderList
=
<
OrderList
>[];
json
[
'order_list'
].
forEach
((
v
)
{
orderList
!.
add
(
new
OrderList
.
fromJson
(
v
));
orderList
!.
add
(
OrderList
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'error'
]
=
this
.
error
;
if
(
this
.
orderList
!=
null
)
{
data
[
'order_list'
]
=
this
.
orderList
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'error'
]
=
error
;
if
(
orderList
!=
null
)
{
data
[
'order_list'
]
=
orderList
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -47,8 +47,8 @@ class OrderList {
String
?
amount
;
String
?
datetime
;
OrderList
(
{
this
.
attachment
,
OrderList
(
{
this
.
attachment
,
this
.
paymentId
,
this
.
orderNumber
,
this
.
status
,
...
...
@@ -65,7 +65,8 @@ class OrderList {
this
.
adjustedAmount
,
this
.
description
,
this
.
amount
,
this
.
datetime
});
this
.
datetime
,
});
OrderList
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
attachment
=
json
[
'attachment'
];
...
...
@@ -89,25 +90,25 @@ class OrderList {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'attachment'
]
=
this
.
attachment
;
data
[
'payment_id'
]
=
this
.
paymentId
;
data
[
'order_number'
]
=
this
.
orderNumber
;
data
[
'status'
]
=
this
.
status
;
data
[
'ename'
]
=
this
.
ename
;
data
[
'aname'
]
=
this
.
aname
;
data
[
'approval_employee'
]
=
this
.
approvalEmployee
;
data
[
'payment_type'
]
=
this
.
paymentType
;
data
[
'ref_id'
]
=
this
.
refId
;
data
[
'ref_type'
]
=
this
.
refType
;
data
[
'ref_no'
]
=
this
.
refNo
;
data
[
'approval_status'
]
=
this
.
approvalStatus
;
data
[
'payment_date'
]
=
this
.
paymentDate
;
data
[
'approval_emp_id'
]
=
this
.
approvalEmpId
;
data
[
'adjusted_amount'
]
=
this
.
adjustedAmount
;
data
[
'description'
]
=
this
.
description
;
data
[
'amount'
]
=
this
.
amount
;
data
[
'datetime'
]
=
this
.
datetime
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'attachment'
]
=
attachment
;
data
[
'payment_id'
]
=
paymentId
;
data
[
'order_number'
]
=
orderNumber
;
data
[
'status'
]
=
status
;
data
[
'ename'
]
=
ename
;
data
[
'aname'
]
=
aname
;
data
[
'approval_employee'
]
=
approvalEmployee
;
data
[
'payment_type'
]
=
paymentType
;
data
[
'ref_id'
]
=
refId
;
data
[
'ref_type'
]
=
refType
;
data
[
'ref_no'
]
=
refNo
;
data
[
'approval_status'
]
=
approvalStatus
;
data
[
'payment_date'
]
=
paymentDate
;
data
[
'approval_emp_id'
]
=
approvalEmpId
;
data
[
'adjusted_amount'
]
=
adjustedAmount
;
data
[
'description'
]
=
description
;
data
[
'amount'
]
=
amount
;
data
[
'datetime'
]
=
datetime
;
return
data
;
}
}
lib/Models/ordersModels/technicianAddPaymentResendOTPResponse.dart
View file @
7210793a
...
...
@@ -3,8 +3,11 @@ class Technicianaddpaymentresendotpresponse {
String
?
message
;
int
?
sessionExists
;
Technicianaddpaymentresendotpresponse
(
{
this
.
error
,
this
.
message
,
this
.
sessionExists
});
Technicianaddpaymentresendotpresponse
({
this
.
error
,
this
.
message
,
this
.
sessionExists
,
});
Technicianaddpaymentresendotpresponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
...
...
@@ -13,10 +16,10 @@ class Technicianaddpaymentresendotpresponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'session_exists'
]
=
this
.
sessionExists
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'session_exists'
]
=
sessionExists
;
return
data
;
}
}
lib/Notifiers/AttendanceNotifier.dart
View file @
7210793a
import
'dart:convert'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/screens/LoginScreen.dart'
;
import
'package:generp/services/api_calling.dart'
;
import
'package:intl/intl.dart'
;
import
'package:provider/provider.dart'
;
import
'../Models/AttendanceListResponse.dart'
;
import
'../Utils/commonServices.dart'
;
import
'HomeScreenNotifier.dart'
;
...
...
@@ -114,10 +110,10 @@ class AttendanceNotifier extends ChangeNotifier {
if
(
data
.
sessionExists
==
1
)
{
// _attHistory = data.attHistory!;
_attendanceStatus
=
data
.
attStatus
!;
Future
.
delayed
(
Duration
(
milliseconds:
400
),()
{
Future
.
delayed
(
Duration
(
milliseconds:
400
),
()
{
_isLoading
=
false
;
notifyListeners
();
}
,
);
});
notifyListeners
();
}
else
{
_isLoading
=
true
;
...
...
@@ -135,10 +131,7 @@ class AttendanceNotifier extends ChangeNotifier {
}
}
Future
<
void
>
dateWiseAttendance
(
Selecteddate
,
BuildContext
context
,
)
async
{
Future
<
void
>
dateWiseAttendance
(
Selecteddate
,
BuildContext
context
)
async
{
try
{
final
homeprov
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
final
data
=
await
ApiCalling
.
DateWiseAttendanceApi
(
...
...
@@ -211,10 +204,10 @@ class AttendanceNotifier extends ChangeNotifier {
}
// print(_dateArrayList);
// print(_penalityArrayList);
Future
.
delayed
(
Duration
(
milliseconds:
400
),()
{
Future
.
delayed
(
Duration
(
milliseconds:
400
),
()
{
_isLoading
=
false
;
notifyListeners
();
}
,
);
});
notifyListeners
();
}
else
{
toast
(
context
,
"Null response from server."
);
...
...
lib/Notifiers/CheckInProvider.dart
View file @
7210793a
...
...
@@ -41,7 +41,7 @@ class CheckInOutProvider with ChangeNotifier {
File
?
get
image
=>
_image
;
int
get
imagePicked
=>
_imagePicked
;
set
imagePicked
(
int
value
){
set
imagePicked
(
int
value
)
{
_imagePicked
=
value
;
notifyListeners
();
}
...
...
@@ -94,8 +94,8 @@ class CheckInOutProvider with ChangeNotifier {
actions:
<
Widget
>[
TextButton
(
style:
ButtonStyle
(
backgroundColor:
Material
StateProperty
.
all
(
Colors
.
white
),
overlayColor:
Material
StateProperty
.
all
(
Colors
.
white
),
backgroundColor:
Widget
StateProperty
.
all
(
Colors
.
white
),
overlayColor:
Widget
StateProperty
.
all
(
Colors
.
white
),
),
onPressed:
()
async
{
// await openAppSettings();
...
...
@@ -116,7 +116,6 @@ class CheckInOutProvider with ChangeNotifier {
}
final
Location
.
LocationData
locData
=
await
location
.
getLocation
();
if
(
locData
!=
null
)
{
currentLocation
=
locData
;
currentLocationLatLng
=
LatLng
(
locData
.
latitude
!,
locData
.
longitude
!);
isLoading
=
false
;
...
...
@@ -135,7 +134,6 @@ class CheckInOutProvider with ChangeNotifier {
);
notifyListeners
();
}
}
void
onCameraMove
(
CameraPosition
position
,
context
)
{
_timer
?.
cancel
();
...
...
@@ -143,6 +141,7 @@ class CheckInOutProvider with ChangeNotifier {
getLocationPermission
(
context
);
});
}
// Future<void> getavailableCameras(context,attendanceStatus) async {
// try {
// _cameras = await availableCameras();
...
...
@@ -286,6 +285,7 @@ class CheckInOutProvider with ChangeNotifier {
}
}
@override
void
dispose
()
{
validateLocation
=
null
;
// locationController.dispose();
...
...
lib/Notifiers/GeneratorDetailsProvider.dart
View file @
7210793a
...
...
@@ -19,7 +19,6 @@ import '../Utils/app_colors.dart';
import
'HomeScreenNotifier.dart'
;
class
Generatordetailsprovider
extends
ChangeNotifier
{
bool
_showMoreDetails
=
false
;
bool
_submitLoading
=
false
;
bool
_showMoreScheduleDetails
=
false
;
...
...
@@ -319,7 +318,8 @@ class Generatordetailsprovider extends ChangeNotifier {
case
"Generator Details"
:
_title
=
"Generator Details"
;
_subTitle
=
"to open Generator Details"
;
_note
=
"Note*: 'Tag Location' and 'Register Complaint' are moved to 'Generator Details'."
;
_note
=
"Note*: 'Tag Location' and 'Register Complaint' are moved to 'Generator Details'."
;
notifyListeners
();
break
;
case
"Register Complaint"
:
...
...
@@ -359,7 +359,7 @@ class Generatordetailsprovider extends ChangeNotifier {
_hasPermission
=
false
;
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
)
{}
}
Future
<
void
>
checkLocationPermission1
()
async
{
...
...
@@ -378,7 +378,7 @@ class Generatordetailsprovider extends ChangeNotifier {
_hasLocationPermission
=
false
;
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
)
{}
}
Future
<
void
>
requestCameraPermission
()
async
{
...
...
@@ -396,7 +396,7 @@ class Generatordetailsprovider extends ChangeNotifier {
_hasPermission
=
false
;
await
Permission
.
camera
.
request
();
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
)
{}
}
Future
<
void
>
requestLocationPermission
()
async
{
...
...
@@ -414,7 +414,7 @@ class Generatordetailsprovider extends ChangeNotifier {
_hasLocationPermission
=
false
;
await
Permission
.
location
.
request
();
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
)
{}
}
Future
<
void
>
getLocationPermission
(
BuildContext
context
)
async
{
...
...
@@ -441,8 +441,8 @@ class Generatordetailsprovider extends ChangeNotifier {
actions:
<
Widget
>[
TextButton
(
style:
ButtonStyle
(
backgroundColor:
Material
StateProperty
.
all
(
Colors
.
white
),
overlayColor:
Material
StateProperty
.
all
(
Colors
.
white
),
backgroundColor:
Widget
StateProperty
.
all
(
Colors
.
white
),
overlayColor:
Widget
StateProperty
.
all
(
Colors
.
white
),
),
onPressed:
()
async
{
// await openAppSettings();
...
...
@@ -463,14 +463,12 @@ class Generatordetailsprovider extends ChangeNotifier {
}
final
Location
.
LocationData
locData
=
await
location
.
getLocation
();
if
(
locData
!=
null
)
{
currentLocationLatLng
=
LatLng
(
locData
.
latitude
!,
locData
.
longitude
!);
latlongs
=
'
${locData.latitude}
,
${locData.longitude}
'
;
notifyListeners
();
}
}
Future
<
void
>
getCurrentLocation
()
async
{
try
{
...
...
@@ -487,9 +485,9 @@ class Generatordetailsprovider extends ChangeNotifier {
void
onQRViewCreated
(
QRViewController
controller
,
from
,
context
)
{
// print("QRVIEW");
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
this
.
_qrViewController
=
controller
;
_qrViewController
=
controller
;
controller
.
scannedDataStream
.
listen
((
scanData
)
{
controller
!
.
pauseCamera
();
controller
.
pauseCamera
();
if
(
from
==
"Generator Details"
)
{
_genID
=
scanData
.
code
;
_genHashID
=
scanData
.
code
;
...
...
@@ -597,7 +595,7 @@ class Generatordetailsprovider extends ChangeNotifier {
notifyListeners
();
// Navigator.pop(context);
if
(
from
==
"Generator Details"
)
{
this
.
_qrViewController
!.
pauseCamera
();
_qrViewController
!.
pauseCamera
();
Navigator
.
pushAndRemoveUntil
(
context
,
MaterialPageRoute
(
...
...
@@ -612,7 +610,7 @@ class Generatordetailsprovider extends ChangeNotifier {
},
);
}
else
if
(
from
==
"Register Complaint"
)
{
this
.
_qrViewController
!.
pauseCamera
();
_qrViewController
!.
pauseCamera
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Registercomplaint
()),
...
...
@@ -699,7 +697,7 @@ class Generatordetailsprovider extends ChangeNotifier {
}
notifyListeners
();
if
(
from
==
"Generator Details"
)
{
this
.
_qrViewController
!.
pauseCamera
();
_qrViewController
!.
pauseCamera
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
...
...
@@ -707,7 +705,7 @@ class Generatordetailsprovider extends ChangeNotifier {
),
);
}
else
if
(
from
==
"Register Complaint"
)
{
this
.
_qrViewController
!.
pauseCamera
();
_qrViewController
!.
pauseCamera
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Registercomplaint
()),
...
...
@@ -738,7 +736,7 @@ class Generatordetailsprovider extends ChangeNotifier {
if
(
data
!=
null
)
{
if
(
data
.
sessionExists
==
1
)
{
if
(
data
.
error
==
0
)
{
_complaintListOther
=
data
.
list
??[];
_complaintListOther
=
data
.
list
??
[];
notifyListeners
();
_isLoading
=
false
;
}
else
{
...
...
@@ -770,22 +768,22 @@ class Generatordetailsprovider extends ChangeNotifier {
genID
,
selectedTypeId
,
selectedDescriptionId
,
running
_h
rs
,
C
omplaint
_
Note
,
running
H
rs
,
c
omplaintNote
,
)
async
{
try
{
print
(
"selectedTypeId:
$
{
selectedTypeId
}
"
);
print
(
"selectedDescriptionId:
$
{
selectedDescriptionId
}
"
);
print
(
"selectedDescriptionId:
$
{
selectedDescriptionId
}
"
);
print
(
"selectedTypeId:
$selectedTypeId
"
);
print
(
"selectedDescriptionId:
$selectedDescriptionId
"
);
print
(
"selectedDescriptionId:
$selectedDescriptionId
"
);
final
data
=
await
ApiCalling
.
SubmitGeneratorComplaintAPI
(
homeProvider
.
empId
,
homeProvider
.
session
,
selectedTypeId
,
selectedDescriptionId
,
selectedDescriptionId
,
running
_h
rs
,
running
H
rs
,
genID
,
C
omplaint
_
Note
,
c
omplaintNote
,
);
if
(
data
!=
null
)
{
if
(
data
.
sessionExists
==
1
)
{
...
...
@@ -1049,7 +1047,7 @@ class Generatordetailsprovider extends ChangeNotifier {
debugPrint
(
"added"
);
_image
=
File
(
galleryImage
!.
path
);
_imageName
=
File
(
galleryImage
!
.
name
);
_imageName
=
File
(
galleryImage
.
name
);
_imagePicked
=
1
;
_imageError
=
null
;
notifyListeners
();
...
...
@@ -1095,7 +1093,7 @@ class Generatordetailsprovider extends ChangeNotifier {
Container
(
alignment:
Alignment
.
topLeft
,
child:
Text
(
"#
$
{
genID
}
"
,
"#
$genID
"
,
style:
TextStyle
(
color:
AppColors
.
semi_black
,
fontSize:
12
,
...
...
lib/Notifiers/HomeScreenNotifier.dart
View file @
7210793a
...
...
@@ -14,7 +14,7 @@ class HomescreenNotifier extends ChangeNotifier {
String
isBatterIgnoredText
=
'Unknown'
;
String
_username
=
""
;
String
_email
=
""
;
String
_curdate
=
""
;
final
String
_curdate
=
""
;
String
_empId
=
""
;
String
_session
=
""
;
String
_requestId
=
""
;
...
...
@@ -72,13 +72,14 @@ class HomescreenNotifier extends ChangeNotifier {
_email
=
await
SharedpreferencesService
().
getString
(
"UserEmail"
)
??
""
;
_session
=
await
SharedpreferencesService
().
getString
(
"Session_id"
)
??
""
;
_roleStatus
=
await
SharedpreferencesService
().
getString
(
"roles"
)
??
""
;
_requestId
=
await
SharedpreferencesService
().
getString
(
"attendRequestId"
)
??
""
;
_requestId
=
await
SharedpreferencesService
().
getString
(
"attendRequestId"
)
??
""
;
var
lastLocationTime
=
await
SharedpreferencesService
().
getString
(
"lastLocationTime"
,
);
notifyListeners
();
print
(
"lastLocationTime:
$
{
lastLocationTime
}
"
);
print
(
"lastLocationTime:
$lastLocationTime
"
);
if
(
await
SharedpreferencesService
().
getString
(
"redirectUrl"
)
==
null
)
{
_webPageUrl
=
"https://erp.gengroup.in/ci/app/home/web_erp?emp_id=
$empId
&session_id=
$session
"
;
...
...
@@ -86,14 +87,14 @@ class HomescreenNotifier extends ChangeNotifier {
"https://erp.gengroup.in/ci/app/home/web_erp?emp_id=
$empId
&session_id=
$session
&login_type=whizzdom&redirect_url=https://whizzdom.gengroup.in"
;
}
else
{
_webPageUrl
=
"https://erp.gengroup.in/ci/app/home/web_erp?emp_id=
$empId
&session_id=
$session
&redirect_url=
${
await
SharedpreferencesService().getString("redirectUrl").toString()}
"
;
"https://erp.gengroup.in/ci/app/home/web_erp?emp_id=
$empId
&session_id=
$session
&redirect_url=
${SharedpreferencesService().getString("redirectUrl").toString()}
"
;
_whizzdomPageUrl
=
"https://erp.gengroup.in/ci/app/home/web_erp?emp_id=
$empId
&session_id=
$session
&login_type=whizzdom&redirect_url=
${
await
SharedpreferencesService().getString("redirectUrl").toString()}
"
;
"https://erp.gengroup.in/ci/app/home/web_erp?emp_id=
$empId
&session_id=
$session
&login_type=whizzdom&redirect_url=
${SharedpreferencesService().getString("redirectUrl").toString()}
"
;
}
notifyListeners
();
if
(
kDebugMode
)
{
print
(
"s:
"
+
session
);
print
(
"r:
"
+
roleStatus
);
print
(
"s:
$
session
"
);
print
(
"r:
$
roleStatus
"
);
print
(
roleStatus
.
length
);
}
...
...
@@ -177,5 +178,4 @@ class HomescreenNotifier extends ChangeNotifier {
print
(
"
$e
"
);
}
}
}
lib/Notifiers/InventoryProvider.dart
View file @
7210793a
...
...
@@ -29,18 +29,17 @@ class InventoryProvider extends ChangeNotifier {
String
_issuetype
=
""
;
String
get
issuetype
=>
_issuetype
;
set
issuetype
(
value
){
set
issuetype
(
value
)
{
_issuetype
=
value
;
}
String
get
quantityError
=>
_quantityError
;
String
get
descriptionError
=>
_descriptionError
;
bool
get
isButtonEnabled
=>
_quantity
.
isNotEmpty
&&
_description
.
isNotEmpty
;
bool
get
isButtonEnabled
=>
_quantity
.
isNotEmpty
&&
_description
.
isNotEmpty
;
String
?
get
partID
=>
_partID
;
PartData
get
partData
=>
_partData
;
List
<
C_List
>
get
complaintList
=>
_complaintList
;
List
<
C_List
>
get
complaintList
=>
_complaintList
;
bool
get
hasPermission
=>
_hasPermission
;
...
...
@@ -62,7 +61,7 @@ class InventoryProvider extends ChangeNotifier {
_hasPermission
=
false
;
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
)
{}
}
Future
<
void
>
requestCameraPermission
()
async
{
...
...
@@ -80,14 +79,14 @@ class InventoryProvider extends ChangeNotifier {
_hasPermission
=
false
;
await
Permission
.
camera
.
request
();
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
)
{}
}
void
onQRViewCreated
(
QRViewController
controller
,
from
,
context
)
{
// print("QRVIEW");
this
.
_qrViewController
=
controller
;
_qrViewController
=
controller
;
controller
.
scannedDataStream
.
listen
((
scanData
)
{
controller
!
.
pauseCamera
();
controller
.
pauseCamera
();
if
(
from
==
"inventory"
)
{
_partID
=
scanData
.
code
;
notifyListeners
();
...
...
@@ -95,12 +94,14 @@ class InventoryProvider extends ChangeNotifier {
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
GeneratorPartDetailsScreen
()),
);
}
else
if
(
from
==
"pendingComplaints"
){
}
else
if
(
from
==
"pendingComplaints"
)
{
_partID
=
scanData
.
code
;
notifyListeners
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Complainthistory
(
genHashID:
scanData
.
code
,)),
MaterialPageRoute
(
builder:
(
context
)
=>
Complainthistory
(
genHashID:
scanData
.
code
),
),
);
}
});
...
...
@@ -124,7 +125,7 @@ class InventoryProvider extends ChangeNotifier {
_partData
=
data
.
partData
!;
_partID
=
partId
;
if
(
from
==
"inventory"
)
{
this
.
_qrViewController
!.
pauseCamera
();
_qrViewController
!.
pauseCamera
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
...
...
@@ -132,7 +133,6 @@ class InventoryProvider extends ChangeNotifier {
),
);
}
}
else
if
(
data
.
error
==
1
)
{
toast
(
context
,
"Enter Correct ID"
);
}
else
{}
...
...
@@ -164,10 +164,12 @@ class InventoryProvider extends ChangeNotifier {
_complaintList
=
data
.
list
!;
_isLoading
=
false
;
this
.
_qrViewController
!.
pauseCamera
();
_qrViewController
!.
pauseCamera
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Complainthistory
(
genHashID:
genID
,)),
MaterialPageRoute
(
builder:
(
context
)
=>
Complainthistory
(
genHashID:
genID
),
),
);
notifyListeners
();
}
else
{
...
...
@@ -192,6 +194,7 @@ class InventoryProvider extends ChangeNotifier {
print
(
e
.
toString
());
}
}
void
updateQuantity
(
String
issueQuantity
)
{
_quantity
=
issueQuantity
;
_quantityError
=
''
;
...
...
@@ -203,6 +206,7 @@ class InventoryProvider extends ChangeNotifier {
_descriptionError
=
''
;
notifyListeners
();
}
bool
_validate
(
String
issueQuantity
,
String
issueDescription
)
{
_quantityError
=
''
;
_descriptionError
=
''
;
...
...
@@ -219,29 +223,36 @@ class InventoryProvider extends ChangeNotifier {
return
_quantityError
.
isEmpty
&&
_descriptionError
.
isEmpty
;
}
Future
<
void
>
StockRecieveIssueAPI
(
homeProvider
,
context
,
issueQuantity
,
issueDescription
,
partID
,
type
)
async
{
Future
<
void
>
StockRecieveIssueAPI
(
homeProvider
,
context
,
issueQuantity
,
issueDescription
,
partID
,
type
,
)
async
{
try
{
if
(!
_validate
(
issueQuantity
,
issueDescription
))
return
;
final
data
=
await
ApiCalling
.
InventoryUpdateStockAPI
(
homeProvider
.
empId
,
homeProvider
.
session
,
issueQuantity
,
issueDescription
,
partID
,
type
);
if
(
data
!=
null
)
{
final
data
=
await
ApiCalling
.
InventoryUpdateStockAPI
(
homeProvider
.
empId
,
homeProvider
.
session
,
issueQuantity
,
issueDescription
,
partID
,
type
,
);
if
(
data
!=
null
)
{
if
(
data
.
error
==
0
)
{
toast
(
context
,
"Updated Successfully!"
);
Navigator
.
pop
(
context
);
LoadPartDetailsApifunction
(
homeProvider
,
context
,
""
,
partID
);
LoadPartDetailsApifunction
(
homeProvider
,
context
,
""
,
partID
);
}
else
{
toast
(
context
,
"Updated Failed!"
);
}
notifyListeners
();
}
}
on
Error
catch
(
e
)
{
print
(
e
.
toString
());
}
...
...
lib/Notifiers/LogoutNotifier.dart
View file @
7210793a
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
...
...
@@ -7,45 +6,46 @@ import 'package:generp/services/api_calling.dart';
import
'../Utils/BackgroundLocationService.dart'
;
class
LogoutNotifier
extends
ChangeNotifier
{
class
LogoutNotifier
extends
ChangeNotifier
{
bool
_logoutButtonClicked
=
false
;
bool
_isLoading
=
false
;
bool
get
isLoading
=>
_isLoading
;
bool
get
logoutButtonClicked
=>
_logoutButtonClicked
;
set
logoutButtonClicked
(
bool
val
){
set
logoutButtonClicked
(
bool
val
)
{
_logoutButtonClicked
=
val
;
notifyListeners
();
}
Future
<
void
>
LogoutApiFunction
(
HomescreenNotifier
prov
,
BuildContext
context
)
async
{
Future
<
void
>
LogoutApiFunction
(
HomescreenNotifier
prov
,
BuildContext
context
,
)
async
{
// print("lohi");
try
{
final
data
=
await
ApiCalling
.
LogoutFunctionApi
(
prov
.
empId
??
""
,
prov
.
session
??
""
);
if
(
data
!=
null
)
{
final
data
=
await
ApiCalling
.
LogoutFunctionApi
(
prov
.
empId
??
""
,
prov
.
session
??
""
,
);
if
(
data
!=
null
)
{
if
(
data
.
error
==
0
)
{
_isLoading
=
false
;
_logoutButtonClicked
=
false
;
await
BackgroundLocationService
.
stopLocationService
();
SharedpreferencesService
().
clearPreferences
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
LoginScreen
()));
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
LoginScreen
()),
);
notifyListeners
();
}
else
{
// print(data.toString());
}
}
else
{}
}
else
{}
// {print("Something went wrong, Please try again.")}
}
on
Exception
catch
(
e
)
{
print
(
"
$e
"
);
}
}
}
lib/Notifiers/NearByGeneratorsProvider.dart
View file @
7210793a
...
...
@@ -25,13 +25,15 @@ import '../Utils/commonServices.dart';
class
Nearbygeneratorsprovider
extends
ChangeNotifier
{
final
ImagePicker
_picker
=
ImagePicker
();
List
<
Nearbygenerators
>
_generatorslist
=
[];
TextEditingController
_locationController
=
TextEditingController
();
String
_googleApikey
=
"AIzaSyBGzvgMMKwPBAANTwaoRsAnrCpiWCj8wVs"
;
final
TextEditingController
_locationController
=
TextEditingController
();
final
String
_googleApikey
=
"AIzaSyBGzvgMMKwPBAANTwaoRsAnrCpiWCj8wVs"
;
GoogleMapController
?
_mapController
;
CameraPosition
?
_cameraPosition
;
LatLng
_startLocation
=
const
LatLng
(
17.439112226708446
,
78.43292499146135
);
final
LatLng
_startLocation
=
const
LatLng
(
17.439112226708446
,
78.43292499146135
,
);
String
_latlongs
=
""
;
List
<
Marker
>
_markers
=
[];
List
<
String
>
_addresses
=
[];
...
...
@@ -45,7 +47,6 @@ class Nearbygeneratorsprovider extends ChangeNotifier {
double
_currentValue
=
1.0
;
Timer
?
_debounceTimer
;
List
<
Nearbygenerators
>
get
generatorsList
=>
_generatorslist
;
TextEditingController
get
LocationController
=>
_locationController
;
String
get
googleAPIKey
=>
_googleApikey
;
...
...
@@ -64,28 +65,30 @@ class Nearbygeneratorsprovider extends ChangeNotifier {
String
get
selectedItem
=>
_selectedItem
;
double
get
currentValue
=>
_currentValue
;
set
currentValue
(
value
){
set
currentValue
(
value
)
{
_currentValue
=
value
;
notifyListeners
();
}
set
selectedItem
(
String
value
){
set
selectedItem
(
String
value
)
{
_selectedItem
=
value
;
notifyListeners
();
}
}
set
markers
(
List
<
Marker
>
value
){
set
markers
(
List
<
Marker
>
value
)
{
_markers
=
value
;
notifyListeners
();
}
set
mapController
(
value
){
}
set
mapController
(
value
)
{
_mapController
=
value
;
notifyListeners
();
}
void
resetAll
(){
void
resetAll
()
{
_currentValue
=
1.0
;
_selectedItem
=
""
;
_markers
=
[];
_markers
=
[];
_addresses
=
[];
}
...
...
@@ -130,7 +133,7 @@ set markers(List<Marker> value){
final
lat
=
_currentLocation
!.
latitude
;
final
lang
=
_currentLocation
!.
longitude
!;
_latlongs
=
'
$lat
,
$lang
'
;
LoadNearbyGeneratorsAPI
(
context
,
_currentValue
);
LoadNearbyGeneratorsAPI
(
context
,
_currentValue
);
}
}
...
...
@@ -140,15 +143,17 @@ set markers(List<Marker> value){
getLocationPermission
(
context
);
});
}
void
debounce
(
VoidCallback
callback
,
Duration
duration
)
{
_debounceTimer
?.
cancel
();
_debounceTimer
=
Timer
(
duration
,
callback
);
}
Future
<
void
>
LoadNearbyGeneratorsAPI
(
BuildContext
context
,
radius
)
async
{
Future
<
void
>
LoadNearbyGeneratorsAPI
(
BuildContext
context
,
radius
)
async
{
if
(
_latlongs
.
isEmpty
||
_currentValue
<=
0
)
{
print
(
"Invalid parameters: latlongs=
$_latlongs
, currentValue=
$_currentValue
"
);
print
(
"Invalid parameters: latlongs=
$_latlongs
, currentValue=
$_currentValue
"
,
);
return
;
}
try
{
...
...
@@ -194,7 +199,6 @@ set markers(List<Marker> value){
await
Future
.
forEach
(
generatorslist
,
(
store
)
async
{
String
address
=
await
_getAddressFromLatLng
(
store
.
loc
);
_addresses
.
add
(
address
);
});
notifyListeners
();
// for (int i = 0; i < _addresses.length; i++) {
...
...
@@ -236,7 +240,8 @@ set markers(List<Marker> value){
Navigator
.
push
(
context
,
// Use the widget's BuildContext, which is valid here
MaterialPageRoute
(
builder:
(
context
)
=>
Generatordetails
(
builder:
(
context
)
=>
Generatordetails
(
activityName:
"NearByGenerators"
,
genLocation:
generator
.
loc
,
generatorId:
generator
.
generatorId
,
...
...
@@ -246,7 +251,6 @@ set markers(List<Marker> value){
},
title:
"Customer Name:
${generator.accName}
"
,
snippet:
"Product Name:
${generator.productName}
"
,
),
zIndex:
100
,
...
...
@@ -273,19 +277,24 @@ set markers(List<Marker> value){
// ),
// ),
// );
},
),
);
});
return
markers
;
}
Future
<
void
>
onMarkerTap
(
context
,
activityName
,
genLocation
,
generatorId
)
async
{
Future
<
void
>
onMarkerTap
(
context
,
activityName
,
genLocation
,
generatorId
,
)
async
{
Navigator
.
push
(
context
,
// Use the widget's BuildContext, which is valid here
MaterialPageRoute
(
builder:
(
context
)
=>
Generatordetails
(
builder:
(
context
)
=>
Generatordetails
(
activityName:
activityName
,
genLocation:
genLocation
,
generatorId:
generatorId
,
...
...
@@ -295,7 +304,6 @@ set markers(List<Marker> value){
_markers
=
markers
;
notifyListeners
();
}
LatLng
_parseLatLng
(
String
?
location
)
{
...
...
@@ -339,5 +347,4 @@ set markers(List<Marker> value){
}
return
"Address not found"
;
}
}
lib/Notifiers/PCWalletProvider.dart
View file @
7210793a
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:generp/services/api_calling.dart'
;
import
'package:provider/provider.dart'
;
...
...
@@ -7,8 +6,6 @@ import '../Models/PaymentCollectionWalletResponse.dart';
import
'HomeScreenNotifier.dart'
;
class
Pcwalletprovider
extends
ChangeNotifier
{
List
<
HistoryList
>
_historyList
=
[];
TotalDet
_totalDet
=
TotalDet
();
bool
_isLoading
=
false
;
...
...
@@ -24,7 +21,9 @@ class Pcwalletprovider extends ChangeNotifier {
listen:
false
,
);
final
data
=
await
ApiCalling
.
loadTransactionsListAPI
(
HomeProvider
.
empId
,
HomeProvider
.
session
);
HomeProvider
.
empId
,
HomeProvider
.
session
,
);
if
(
data
!=
null
)
{
if
(
data
.
error
==
0
)
{
...
...
@@ -35,8 +34,7 @@ class Pcwalletprovider extends ChangeNotifier {
_isLoading
=
false
;
}
notifyListeners
();
}
else
{
}
else
{
print
(
"Something went wrong, Please try again."
);
}
}
on
Exception
catch
(
e
)
{
...
...
lib/Notifiers/PaymentCollectionProvider.dart
View file @
7210793a
import
'package:flutter/material.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:generp/Models/PaymentCollectionResponse.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/screens/LoginScreen.dart'
;
import
'package:generp/services/api_calling.dart'
;
import
'package:provider/provider.dart'
;
import
'../Models/AccountSuggestionResponse.dart'
;
import
'../screens/splash.dart'
;
class
Paymentcollectionprovider
extends
ChangeNotifier
{
List
<
PC_List
>
_paymentCollectionList
=
[];
...
...
@@ -20,11 +15,11 @@ class Paymentcollectionprovider extends ChangeNotifier {
List
<
AccountList
>
get
accountList
=>
_accountList
;
bool
get
isLoading
=>
_isLoading
;
void
resetAll
(){
void
resetAll
()
{
_accountList
=
[];
_paymentCollectionList
=
[];
}
Future
<
void
>
PaymentCollectionAPI
(
BuildContext
context
)
async
{
try
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
...
...
lib/Notifiers/PaymentDetailsProvider.dart
View file @
7210793a
...
...
@@ -25,7 +25,6 @@ class Paymentdetailsprovider extends ChangeNotifier {
TextEditingController
telController
=
TextEditingController
();
TextEditingController
emailController
=
TextEditingController
();
String
?
nameError
;
String
?
designationError
;
String
?
mobError
;
...
...
@@ -51,13 +50,13 @@ class Paymentdetailsprovider extends ChangeNotifier {
var
_type
=
""
;
var
_refType
=
""
;
var
_refId
=
""
;
var
_account_id
=
""
;
final
_account_id
=
""
;
var
_CollectionId
=
0
;
var
_image_picked
=
0
;
final
ImagePicker
_picker
=
ImagePicker
();
File
?
_image
;
File
?
_imageName
;
bool
_isLoading
=
true
;
final
bool
_isLoading
=
true
;
List
<
PaymentModeList
>
get
paymentModeDropDown
=>
_payment_mode_drop_down
;
...
...
@@ -229,7 +228,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
// if(!CheckValidations(context,reference, amount)){
// return;
// }
if
(!
validateSubmit
(
context
)){
if
(!
validateSubmit
(
context
))
{
return
;
}
print
(
"came here"
);
...
...
@@ -275,7 +274,6 @@ class Paymentdetailsprovider extends ChangeNotifier {
}
}
Future
<
void
>
showOTPSheetSheet
(
BuildContext
context
)
{
return
showModalBottomSheet
(
useSafeArea:
true
,
...
...
@@ -326,10 +324,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
alignment:
Alignment
.
center
,
height:
50
,
margin:
EdgeInsets
.
only
(
left:
5.0
,
right:
5.0
,
),
margin:
EdgeInsets
.
only
(
left:
5.0
,
right:
5.0
),
child:
PinCodeTextField
(
appContext:
context
,
pastedTextStyle:
TextStyle
(
...
...
@@ -351,14 +346,11 @@ class Paymentdetailsprovider extends ChangeNotifier {
borderRadius:
BorderRadius
.
circular
(
16
),
fieldHeight:
60
,
fieldWidth:
60
,
activeFillColor:
AppColors
.
text_field_color
,
activeFillColor:
AppColors
.
text_field_color
,
activeColor:
AppColors
.
app_blue
,
selectedColor:
AppColors
.
text_field_color
,
selectedFillColor:
AppColors
.
text_field_color
,
inactiveFillColor:
AppColors
.
text_field_color
,
selectedFillColor:
AppColors
.
text_field_color
,
inactiveFillColor:
AppColors
.
text_field_color
,
inactiveColor:
AppColors
.
text_field_color
,
fieldOuterPadding:
EdgeInsets
.
only
(
left:
5
,
...
...
@@ -476,8 +468,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
);
}
bool
validateSubmit
(
context
){
bool
validateSubmit
(
context
)
{
selectContactError
=
null
;
selectPaymentError
=
null
;
selectAmountError
=
null
;
...
...
@@ -491,15 +482,15 @@ class Paymentdetailsprovider extends ChangeNotifier {
isValid
=
false
;
}
if
(
_selectPaymentModeList
==
null
||
_paymentModeID
==
null
)
{
if
(
_selectPaymentModeList
==
null
)
{
selectPaymentError
=
"Please Select Payment Type"
;
isValid
=
false
;
}
if
(
Amountcontroller
.
text
.
trim
().
isEmpty
){
if
(
Amountcontroller
.
text
.
trim
().
isEmpty
)
{
selectAmountError
=
"Please Enter Amount"
;
isValid
=
false
;
}
if
(
Referencecontroller
.
text
.
trim
().
isEmpty
){
if
(
Referencecontroller
.
text
.
trim
().
isEmpty
)
{
ReferenceError
=
"Please Enter Reference Number"
;
isValid
=
false
;
}
...
...
@@ -510,6 +501,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
notifyListeners
();
return
isValid
;
}
Future
<
void
>
OTPVerifyAPI
(
BuildContext
context
)
async
{
try
{
var
homeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
...
...
@@ -611,7 +603,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
debugPrint
(
"added"
);
_image
=
File
(
galleryImage
!.
path
);
_imageName
=
File
(
galleryImage
!
.
name
);
_imageName
=
File
(
galleryImage
.
name
);
_image_picked
=
1
;
imageError
=
null
;
notifyListeners
();
...
...
@@ -633,7 +625,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
debugPrint
(
"Jenny: bytes:
$bytes
, kb:
$kb
, mb:
$mb
"
);
_image
=
File
(
galleryImage
!.
path
);
_imageName
=
File
(
galleryImage
!
.
name
);
_imageName
=
File
(
galleryImage
.
name
);
_image_picked
=
1
;
imageError
=
null
;
...
...
@@ -645,11 +637,11 @@ class Paymentdetailsprovider extends ChangeNotifier {
bool
CheckValidations
(
BuildContext
context
,
reference
,
amount
)
{
bool
isValid
=
true
;
if
(
_contactID
==
null
||
_contactID
==
""
)
{
if
(
_contactID
==
""
)
{
toast
(
context
,
"Select Phone Number"
);
isValid
=
false
;
}
if
(
_paymentModeID
==
null
||
_paymentModeID
==
""
)
{
if
(
_paymentModeID
==
""
)
{
toast
(
context
,
"Select Payment Mode"
);
isValid
=
false
;
}
...
...
@@ -700,13 +692,12 @@ class Paymentdetailsprovider extends ChangeNotifier {
if
(
actName
==
"Generator"
)
{
_saveAgainst
=
"generator"
;
_genId
=
generatorID
;
}
else
{
_saveAgainst
=
"account"
;
_accountId
=
generatorID
;
}
notifyListeners
();
if
(!
validAddContact
(
context
)){
if
(!
validAddContact
(
context
))
{
return
;
}
try
{
...
...
@@ -733,12 +724,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
if
(
data
.
error
==
0
)
{
toast
(
context
,
"Added Successfully"
);
resetAddContect
();
LoadNumbersAPI
(
context
,
_saveAgainst
,
referenceID
,
genId
,
);
LoadNumbersAPI
(
context
,
_saveAgainst
,
referenceID
,
genId
);
Navigator
.
pop
(
context
,
true
);
}
else
if
(
data
.
error
==
1
)
{
toast
(
context
,
data
.
message
);
...
...
@@ -756,7 +742,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
}
}
resetAddContect
(){
resetAddContect
()
{
Amountcontroller
.
clear
();
Referencecontroller
.
clear
();
nameController
.
clear
();
...
...
@@ -774,7 +760,7 @@ class Paymentdetailsprovider extends ChangeNotifier {
notifyListeners
();
}
bool
validAddContact
(
context
){
bool
validAddContact
(
context
)
{
bool
isValid
=
true
;
nameError
=
null
;
...
...
@@ -784,11 +770,11 @@ class Paymentdetailsprovider extends ChangeNotifier {
telError
=
null
;
emailError
=
null
;
if
(
nameController
.
text
.
trim
().
toString
().
isEmpty
){
if
(
nameController
.
text
.
trim
().
toString
().
isEmpty
)
{
nameError
=
"Please Enter Name"
;
isValid
=
false
;
}
if
(
mobController
.
text
.
trim
().
toString
().
isEmpty
){
if
(
mobController
.
text
.
trim
().
toString
().
isEmpty
)
{
mobError
=
"Please Enter Mobile Number"
;
isValid
=
false
;
}
...
...
lib/Notifiers/PendingComplaintsProvider.dart
View file @
7210793a
...
...
@@ -17,7 +17,6 @@ import '../Utils/commonServices.dart';
import
'../screens/splash.dart'
;
class
Pendingcomplaintsprovider
extends
ChangeNotifier
{
TextEditingController
fsrNumberController
=
TextEditingController
();
TextEditingController
runningHoursController
=
TextEditingController
();
TextEditingController
feedbackController
=
TextEditingController
();
...
...
@@ -48,38 +47,39 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
String
?
get
runningHoursError
=>
_runningHoursError
;
final
List
<
Map
<
String
,
dynamic
>>
CompletedStatus
=
[
{
"id"
:
"1"
,
"name"
:
"Pending"
},
{
"id"
:
"2"
,
"name"
:
"Completed"
}
{
"id"
:
"2"
,
"name"
:
"Completed"
}
,
];
set
runningHoursError
(
String
?
values
){
_runningHoursError
=
values
;
set
runningHoursError
(
String
?
values
)
{
_runningHoursError
=
values
;
notifyListeners
();
}
set
imagePicked
(
int
value
){
set
imagePicked
(
int
value
)
{
_image_picked
=
value
;
notifyListeners
();
}
set
imagePath
(
File
?
value
){
set
imagePath
(
File
?
value
)
{
_imageName
=
value
;
notifyListeners
();
}
set
imageFilePath
(
File
?
value
){
set
imageFilePath
(
File
?
value
)
{
_image
=
value
;
notifyListeners
();
}
set
statusID
(
String
?
value
){
set
statusID
(
String
?
value
)
{
_statusId
=
value
;
notifyListeners
();
}
set
submitLoading
(
bool
value
){
set
submitLoading
(
bool
value
)
{
_submitLoading
=
value
;
notifyListeners
();
}
void
resetAll
(){
void
resetAll
()
{
_submitLoading
=
false
;
_statusId
=
""
;
_image_picked
=
0
;
...
...
@@ -94,15 +94,13 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
_selectedTime
=
TimeOfDay
.
now
();
checkDropDownSelected
();
notifyListeners
();
}
void
checkDropDownSelected
(){
if
(
_statusId
!=
null
&&
!
CompletedStatus
.
contains
(
_statusId
))
{
void
checkDropDownSelected
()
{
if
(
_statusId
!=
null
&&
!
CompletedStatus
.
contains
(
_statusId
))
{
_statusId
=
null
;
}
notifyListeners
();
}
Future
<
void
>
TechnicianPendingComplaints
(
BuildContext
context
)
async
{
...
...
@@ -153,11 +151,9 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
final
TimeOfDay
?
picked
=
await
showTimePicker
(
context:
context
,
initialTime:
_selectedTime
,
);
if
(
picked
!=
null
&&
picked
!=
_selectedTime
)
_selectedTime
=
picked
;
_formattedTime
=
_selectedTime
.
hour
.
toString
()
+
":"
+
_selectedTime
.
minute
.
toString
();
_formattedTime
=
"
${_selectedTime.hour}
:
${_selectedTime.minute}
"
;
notifyListeners
();
}
...
...
@@ -178,23 +174,22 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
Future
<
void
>
UpdateComplaintAPIFunction
(
BuildContext
context
,
complaint
_i
d
,
complaint
I
d
,
feedback
,
fsrNumber
,
runningHr
,
statusId
,
)
async
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
try
{
if
(!
validatereceiptForm
(
context
)){
if
(!
validatereceiptForm
(
context
))
{
return
;
}
final
data
=
await
ApiCalling
.
UpdateComplaintAPI
(
HomeProvider
.
empId
,
HomeProvider
.
session
,
complaint
_i
d
,
_selectedTime
.
hour
.
toString
()
+
":"
+
_selectedTime
.
minute
.
toString
()
,
complaint
I
d
,
"
${
_selectedTime.hour
}
:
${
_selectedTime.minute
}
"
,
feedback
,
fsrNumber
,
runningHr
,
...
...
@@ -209,8 +204,6 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
toast
(
context
,
"Complaint Status Updated!"
);
resetAll
();
Navigator
.
pop
(
context
);
}
else
if
(
data
.
error
==
1
)
{
toast
(
context
,
"Something Went Wrong, please try again later!"
);
}
else
if
(
data
.
error
==
2
)
{
...
...
@@ -227,7 +220,7 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
// MaterialPageRoute(builder: (context) => Splash()),
// );
}
}
else
{
}
else
{
_submitLoading
=
false
;
notifyListeners
();
}
...
...
@@ -249,7 +242,7 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
_submitLoading
=
false
;
isValid
=
false
;
}
if
(
_statusId
!=
"Pending"
){
if
(
_statusId
!=
"Pending"
)
{
if
(
fsrNumberController
.
text
.
trim
().
isEmpty
)
{
fsrError
=
"Please Enter FSR number"
;
_submitLoading
=
false
;
...
...
@@ -257,20 +250,17 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
}
}
if
(
runningHoursController
.
text
.
trim
().
isEmpty
){
if
(
runningHoursController
.
text
.
trim
().
isEmpty
)
{
_runningHoursError
=
"Enter Running Hours"
;
_submitLoading
=
false
;
isValid
=
false
;
}
notifyListeners
();
return
isValid
;
}
Future
SelectAttachmentDialogue
(
BuildContext
context
)
async
{
Future
SelectAttachmentDialogue
(
BuildContext
context
)
async
{
return
await
showDialog
(
context:
context
,
builder:
...
...
@@ -291,7 +281,7 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
),
),
),
content:
Container
(
content:
SizedBox
(
height:
85
,
child:
Column
(
children:
[
...
...
@@ -300,7 +290,7 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
Navigator
.
of
(
context
).
pop
(
false
);
imgFromGallery
();
},
child:
Container
(
child:
SizedBox
(
height:
35
,
child:
Text
(
"Select photo from gallery"
),
),
...
...
@@ -309,10 +299,9 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
InkWell
(
onTap:
()
{
Navigator
.
of
(
context
).
pop
(
false
);
imgFromCamera
(
);
imgFromCamera
();
},
child:
Container
(
child:
SizedBox
(
height:
35
,
child:
Text
(
"Capture photo from camera"
),
),
...
...
@@ -326,8 +315,7 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
false
;
}
imgFromCamera
(
)
async
{
imgFromCamera
()
async
{
// Capture a photo
try
{
final
XFile
?
galleryImage
=
await
_picker
.
pickImage
(
...
...
@@ -336,19 +324,16 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
);
print
(
"added"
);
_image
=
File
(
galleryImage
!.
path
);
_imageName
=
File
(
galleryImage
!
.
name
);
_imageName
=
File
(
galleryImage
.
name
);
_image_picked
=
1
;
notifyListeners
();
}
catch
(
e
)
{
debugPrint
(
"mmmm:
${e.toString()}
"
);
}
}
imgFromGallery
(
)
async
{
imgFromGallery
()
async
{
// Pick an image
try
{
final
XFile
?
galleryImage
=
await
_picker
.
pickImage
(
...
...
@@ -361,7 +346,7 @@ class Pendingcomplaintsprovider extends ChangeNotifier {
debugPrint
(
"Jenny: bytes:
$bytes
, kb:
$kb
, mb:
$mb
"
);
_image
=
File
(
galleryImage
!.
path
);
_imageName
=
File
(
galleryImage
!
.
name
);
_imageName
=
File
(
galleryImage
.
name
);
_image_picked
=
1
;
notifyListeners
();
}
catch
(
e
)
{
...
...
lib/Notifiers/ProfileNotifier.dart
View file @
7210793a
import
'dart:io'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
...
...
@@ -10,20 +9,20 @@ import 'package:provider/provider.dart';
import
'../Models/hrmModels/jobDescriptionResponse.dart'
;
class
ProfileNotifer
extends
ChangeNotifier
{
class
ProfileNotifer
extends
ChangeNotifier
{
var
_profileImage
=
""
;
var
_company
=
""
;
var
_branch
=
""
;
var
_designation
;
var
_mobile_num
=
""
;
var
_isLoading
=
false
;
var
_secretKey
=
""
;
var
_latestversion
=
""
;
var
_releaseNotes
=
""
;
var
_employeeName
=
""
;
var
_employerID
=
""
;
var
_employeeDesignation
=
""
;
var
_employeeEmail
=
""
;
var
_isLoading
=
false
;
var
_secretKey
=
""
;
var
_latestversion
=
""
;
var
_releaseNotes
=
""
;
var
_employeeName
=
""
;
var
_employerID
=
""
;
var
_employeeDesignation
=
""
;
var
_employeeEmail
=
""
;
get
profileImage
=>
_profileImage
;
get
company
=>
_company
;
...
...
@@ -39,15 +38,17 @@ class ProfileNotifer extends ChangeNotifier{
get
employeeDesignation
=>
_employeeDesignation
;
get
employeeEmail
=>
_employeeEmail
;
Future
<
void
>
ProfileApiFunction
(
HomescreenNotifier
prov
,
BuildContext
context
)
async
{
Future
<
void
>
ProfileApiFunction
(
HomescreenNotifier
prov
,
BuildContext
context
,
)
async
{
try
{
final
data
=
await
ApiCalling
.
ProfileFunctionApi
(
prov
.
empId
??
""
,
prov
.
session
??
""
,
);
final
data
=
await
ApiCalling
.
ProfileFunctionApi
(
prov
.
empId
??
""
,
prov
.
session
??
""
);
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
if
(
data
.
sessionExists
==
1
)
{
_profileImage
=
data
.
profilePic
??
""
;
_company
=
data
.
company
??
""
;
...
...
@@ -56,36 +57,33 @@ class ProfileNotifer extends ChangeNotifier{
_mobile_num
=
data
.
mobileNo
??
""
;
_isLoading
=
false
;
_secretKey
=
data
.
totpSecret
!;
_employeeName
=
data
.
empName
??
""
;
_employerID
=
data
.
empId
??
""
;
_employeeDesignation
=
data
.
designation
??
""
;
_employeeEmail
=
data
.
emailId
??
""
;
_employeeName
=
data
.
empName
??
""
;
_employerID
=
data
.
empId
??
""
;
_employeeDesignation
=
data
.
designation
??
""
;
_employeeEmail
=
data
.
emailId
??
""
;
notifyListeners
();
}
else
if
(
data
.
sessionExists
==
0
)
{
SharedpreferencesService
().
clearPreferences
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
LoginScreen
()));
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
LoginScreen
()),
);
notifyListeners
();
// print(data.toString());
}
}
else
{
print
(
"Something went wrong, Please try again."
);
}
else
{
print
(
"Something went wrong, Please try again."
);}
}
on
Exception
catch
(
e
)
{
print
(
"
$e
"
);
}
}
Future
<
void
>
VersionApiFunction
()
async
{
try
{
final
data
=
await
ApiCalling
.
checkAppVersionApi
();
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
_latestversion
=
data
.
latestVersion
??
""
;
if
(
Platform
.
isAndroid
)
{
_releaseNotes
=
data
.
releaseNotes
??
""
;
...
...
@@ -93,26 +91,24 @@ class ProfileNotifer extends ChangeNotifier{
_releaseNotes
=
data
.
iosReleaseNotes
??
""
;
}
notifyListeners
();
}
else
{
print
(
"Something went wrong, Please try again."
);
}
else
{
print
(
"Something went wrong, Please try again."
);}
}
on
Exception
catch
(
e
)
{
print
(
"
$e
"
);
}
}
String
?
_errorMessage
;
jobDescriptionResponse
?
_response
;
String
?
get
errorMessage
=>
_errorMessage
;
jobDescriptionResponse
?
get
response
=>
_response
;
Future
<
void
>
fetchJobDescription
(
HomescreenNotifier
prov
,
BuildContext
context
)
async
{
Future
<
void
>
fetchJobDescription
(
HomescreenNotifier
prov
,
BuildContext
context
,
)
async
{
_isLoading
=
true
;
_errorMessage
=
null
;
_response
=
null
;
...
...
@@ -138,5 +134,4 @@ class ProfileNotifer extends ChangeNotifier{
_isLoading
=
false
;
notifyListeners
();
}
}
lib/Notifiers/ServiceEngineerDashboardProvider.dart
View file @
7210793a
import
'package:flutter/material.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/screens/LoginScreen.dart'
;
...
...
@@ -19,12 +18,13 @@ class Serviceengineerdashboardprovider extends ChangeNotifier {
int
get
pendingComplaints
=>
_pendingComplaints
;
int
get
todayVisits
=>
_todayVisits
;
int
get
thisMonthsVisits
=>
_thisMonthsVisits
;
String
get
paymentCollectionWalletBalanceAmount
=>
_paymentCollectionWalletBalanceAmount
;
String
get
paymentCollectionWalletBalanceAmount
=>
_paymentCollectionWalletBalanceAmount
;
String
get
monthlyPaymentCollectionAmount
=>
_monthlyPaymentCollectionAmount
;
bool
get
isLoading
=>
_isLoading
;
Future
<
void
>
LoadTechnicianDashboard
(
BuildContext
context
)
async
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
try
{
final
data
=
await
ApiCalling
.
loadTechnicianDashboardApi
(
HomeProvider
.
empId
,
...
...
@@ -38,8 +38,10 @@ class Serviceengineerdashboardprovider extends ChangeNotifier {
_pendingComplaints
=
data
.
pendingComplaints
!;
_todayVisits
=
data
.
todayVisits
!;
_thisMonthsVisits
=
data
.
thisMonthsVisits
!;
_paymentCollectionWalletBalanceAmount
=
data
.
paymentCollectionWalletBalanceAmount
!;
_monthlyPaymentCollectionAmount
=
data
.
monthlyPaymentCollectionAmount
!;
_paymentCollectionWalletBalanceAmount
=
data
.
paymentCollectionWalletBalanceAmount
!;
_monthlyPaymentCollectionAmount
=
data
.
monthlyPaymentCollectionAmount
!;
_isLoading
=
false
;
notifyListeners
();
}
else
{}
...
...
lib/Notifiers/TodayMontlyVisitsProvider.dart
View file @
7210793a
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/screens/LoginScreen.dart'
;
import
'package:generp/services/api_calling.dart'
;
import
'package:provider/provider.dart'
;
...
...
@@ -18,7 +15,7 @@ class Todaymontlyvisitsprovider extends ChangeNotifier {
bool
get
isLoading
=>
_isLoading
;
String
get
title
=>
_title
;
set
title
(
String
value
){
set
title
(
String
value
)
{
_title
=
value
;
}
...
...
@@ -37,7 +34,6 @@ class Todaymontlyvisitsprovider extends ChangeNotifier {
if
(
data
.
error
==
0
)
{
_visitsList
=
data
.
list
!;
_isLoading
=
false
;
}
else
{
_isLoading
=
false
;
}
...
...
lib/Notifiers/UpdatePasswordProvider.dart
View file @
7210793a
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/screens/HomeScreen.dart'
;
import
'package:generp/services/api_calling.dart'
;
import
'package:generp/screens/LoginScreen.dart'
;
import
'package:provider/provider.dart'
;
import
'../Utils/commonServices.dart'
;
...
...
@@ -21,19 +18,20 @@ class UpdatePasswordProvider with ChangeNotifier {
bool
get
pwdVisible
=>
_pwdVisible
;
bool
get
confPwdVisible
=>
_confPwdVisible
;
bool
pwdVisibility
(){
bool
pwdVisibility
()
{
_pwdVisible
=
!
_pwdVisible
;
print
(
_pwdVisible
);
notifyListeners
();
return
_pwdVisible
;
}
bool
confPwdVisibility
(){
bool
confPwdVisibility
()
{
_confPwdVisible
=
!
_confPwdVisible
;
print
(
_confPwdVisible
);
notifyListeners
();
return
_confPwdVisible
;
}
Future
<
void
>
updatePassword
(
BuildContext
context
)
async
{
passwordError
=
null
;
confirmPasswordError
=
null
;
...
...
@@ -66,7 +64,6 @@ class UpdatePasswordProvider with ChangeNotifier {
notifyListeners
();
try
{
var
session
=
await
SharedpreferencesService
().
getString
(
"Session_id"
);
var
empId
=
await
SharedpreferencesService
().
getString
(
"UserId"
);
print
(
"Okay
${password.text}
"
);
...
...
@@ -84,8 +81,9 @@ class UpdatePasswordProvider with ChangeNotifier {
toast
(
context
,
data
.
message
);
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
MyHomePage
(),
settings:
RouteSettings
(
name:
"MyHomePage"
)
MaterialPageRoute
(
builder:
(
context
)
=>
MyHomePage
(),
settings:
RouteSettings
(
name:
"MyHomePage"
),
),
);
}
else
{
...
...
@@ -96,8 +94,10 @@ class UpdatePasswordProvider with ChangeNotifier {
SharedpreferencesService
().
clearPreferences
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
LoginScreen
(),
settings:
RouteSettings
(
name:
"LoginScreen"
)),
MaterialPageRoute
(
builder:
(
context
)
=>
LoginScreen
(),
settings:
RouteSettings
(
name:
"LoginScreen"
),
),
);
}
}
...
...
@@ -113,6 +113,7 @@ class UpdatePasswordProvider with ChangeNotifier {
passwordError
=
null
;
notifyListeners
();
}
void
onChangeConfPassword
(
String
value
)
{
confirmPasswordError
=
null
;
notifyListeners
();
...
...
lib/Notifiers/VisitDetailsProvider.dart
View file @
7210793a
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:generp/Notifiers/HomeScreenNotifier.dart'
;
import
'package:generp/services/api_calling.dart'
;
import
'package:provider/provider.dart'
;
...
...
@@ -8,8 +7,7 @@ import '../Models/FollowUpResponse.dart';
import
'../Models/ViewVisitDetailsResponseNew.dart'
;
import
'../Utils/commonServices.dart'
;
class
Visitdetailsprovider
extends
ChangeNotifier
{
class
Visitdetailsprovider
extends
ChangeNotifier
{
bool
_showMoreDetails
=
false
;
CustomerDetails
_customerDetails
=
CustomerDetails
();
...
...
@@ -25,19 +23,24 @@ class Visitdetailsprovider extends ChangeNotifier{
bool
get
isLoading
=>
_isLoading
;
bool
get
showMoreDetails
=>
_showMoreDetails
;
set
showMoreDetails
(
bool
value
){
set
showMoreDetails
(
bool
value
)
{
_showMoreDetails
=
value
;
notifyListeners
();
}
Future
<
void
>
LoadVisitDetailsAPI
(
BuildContext
context
,
ComplaintID
)
async
{
Future
<
void
>
LoadVisitDetailsAPI
(
BuildContext
context
,
ComplaintID
)
async
{
try
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
final
data
=
await
ApiCalling
.
loadVisitDetailsAPI
(
HomeProvider
.
empId
,
HomeProvider
.
session
,
ComplaintID
);
if
(
data
!=
null
)
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
,
);
final
data
=
await
ApiCalling
.
loadVisitDetailsAPI
(
HomeProvider
.
empId
,
HomeProvider
.
session
,
ComplaintID
,
);
if
(
data
!=
null
)
{
if
(
data
.
error
==
0
)
{
// complaintdetails = data.complaintDetails!;
_customerDetails
=
data
.
customerDetails
!;
...
...
@@ -46,51 +49,44 @@ class Visitdetailsprovider extends ChangeNotifier{
_isLoading
=
false
;
notifyListeners
();
}
else
{
toast
(
context
,
"Something Went Wrong, Please try again!"
);
toast
(
context
,
"Something Went Wrong, Please try again!"
);
print
(
"error"
);
}
}
else
{
toast
(
context
,
"No response From the server, Please try Again!"
);
}
else
{
toast
(
context
,
"No response From the server, Please try Again!"
);
print
(
"error2"
);
}
}
on
Error
catch
(
e
)
{
print
(
e
.
toString
());
}
}
Future
<
void
>
LoadFollowupListAPI
(
BuildContext
context
,
ComplaintID
)
async
{
Future
<
void
>
LoadFollowupListAPI
(
BuildContext
context
,
ComplaintID
)
async
{
try
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
final
data
=
await
ApiCalling
.
loadFollowupListAPI
(
HomeProvider
.
empId
,
HomeProvider
.
session
,
ComplaintID
);
if
(
data
!=
null
)
{
var
HomeProvider
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
,
);
final
data
=
await
ApiCalling
.
loadFollowupListAPI
(
HomeProvider
.
empId
,
HomeProvider
.
session
,
ComplaintID
,
);
if
(
data
!=
null
)
{
if
(
data
.
error
==
0
)
{
// complaintdetails = data.complaintDetails!;
_followupList
=
data
.
list
??[];
_followupList
=
data
.
list
??
[];
_isLoading
=
false
;
notifyListeners
();
}
else
{
toast
(
context
,
"Something Went Wrong, Please try again!"
);
toast
(
context
,
"Something Went Wrong, Please try again!"
);
print
(
"error"
);
}
}
else
{
toast
(
context
,
"No response From the server, Please try Again!"
);
}
else
{
toast
(
context
,
"No response From the server, Please try Again!"
);
print
(
"error2"
);
}
}
on
Error
catch
(
e
)
{
print
(
e
.
toString
());
}
...
...
lib/Notifiers/commonProvider/accountDetailsProvider.dart
View file @
7210793a
...
...
@@ -5,9 +5,7 @@ import 'package:provider/provider.dart';
import
'../../Models/commonModels/commonAccountdetailsResponse.dart'
;
class
Accountdetailsprovider
extends
ChangeNotifier
{
class
Accountdetailsprovider
extends
ChangeNotifier
{
bool
_showMoreDetails
=
false
;
AccountDetails
_accountDetails
=
AccountDetails
();
...
...
@@ -23,17 +21,21 @@ class Accountdetailsprovider extends ChangeNotifier{
double
totalRunningBalance
=
0.0
;
List
<
double
>
runningBalances
=
[];
set
showMoreDetails
(
bool
value
){
set
showMoreDetails
(
bool
value
)
{
_showMoreDetails
=
value
;
notifyListeners
();
}
Future
<
void
>
accountdetailsAPIFunction
(
context
,
accountID
)
async
{
try
{
var
prov
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
final
data
=
await
ApiCalling
.
commonAccountDetailsAPI
(
prov
.
empId
,
prov
.
session
,
accountID
);
if
(
data
!=
null
){
if
(
data
.
error
==
"0"
){
Future
<
void
>
accountdetailsAPIFunction
(
context
,
accountID
)
async
{
try
{
var
prov
=
Provider
.
of
<
HomescreenNotifier
>(
context
,
listen:
false
);
final
data
=
await
ApiCalling
.
commonAccountDetailsAPI
(
prov
.
empId
,
prov
.
session
,
accountID
,
);
if
(
data
!=
null
)
{
if
(
data
.
error
==
"0"
)
{
_accountDetails
=
data
.
accountDetails
!;
_balanceDetails
=
data
.
balanceDetails
!;
_ledgerList
=
data
.
ledgerList
!;
...
...
@@ -53,9 +55,7 @@ class Accountdetailsprovider extends ChangeNotifier{
notifyListeners
();
}
}
}
catch
(
e
,
s
){
}
}
catch
(
e
)
{}
}
Map
<
String
,
List
<
LedgerList
>>
groupByDate
(
List
<
LedgerList
>
list
)
{
...
...
@@ -72,7 +72,7 @@ class Accountdetailsprovider extends ChangeNotifier{
return
grouped
;
}
void
resetValues
(){
void
resetValues
()
{
totalCredit
=
0.0
;
totalDebit
=
0.0
;
totalRunningBalance
=
0.0
;
...
...
Prev
1
…
3
4
5
6
7
8
9
10
11
…
15
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