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
eadb9dd9
Commit
eadb9dd9
authored
May 20, 2025
by
Sai Srinivas
Browse files
20-05-2025 By Sai Srinivas
Common Module complete
parent
e54f0aeb
Changes
45
Show whitespace changes
Inline
Side-by-side
lib/screens/finance/paymentreceiptList.dart
View file @
eadb9dd9
...
...
@@ -54,7 +54,7 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
onTap:
()
{
_showOptionsSheet
(
context
);
},
child:
Icon
(
CupertinoIcons
.
down_arrow
),
child:
SvgPicture
.
asset
(
"assets/svg/ic_download.svg"
,
),
),
InkResponse
(
onTap:
()
async
{
...
...
@@ -82,13 +82,17 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
print
(
"Bottom sheet closed without selection"
);
}
},
child:
Icon
(
CupertinoIcons
.
color_filter
),
child:
SvgPicture
.
asset
(
"assets/svg/filter_ic.svg"
,
height:
25
,
),
),
],
),
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
Container
(
body:
provider
.
isLoading
?
Center
(
child:
CircularProgressIndicator
.
adaptive
(
valueColor:
AlwaysStoppedAnimation
<
Color
>(
AppColors
.
app_blue
)
)):
Container
(
child:
SingleChildScrollView
(
child:
Column
(
children:
[
...
...
lib/screens/serviceEngineer/PendingComplaints.dart
View file @
eadb9dd9
...
...
@@ -147,7 +147,7 @@ class _PendingcomplaintsState extends State<Pendingcomplaints> {
.
complaintId
,
);
},
child:
Icon
(
Icons
.
more_vert
),
child:
SvgPicture
.
asset
(
"assets/svg/ic_more.svg"
,
height:
30
,
),
),
),
],
...
...
lib/services/api_calling.dart
View file @
eadb9dd9
...
...
@@ -43,6 +43,10 @@ import '../Models/UpdateComplaintResponse.dart';
import
'../Models/UpdatePasswordResponse.dart'
;
import
'../Models/VersionsResponse.dart'
;
import
'../Models/ViewVisitDetailsResponse.dart'
;
import
'../Models/commonModels/commonAccountLedgerFilterResponse.dart'
;
import
'../Models/commonModels/commonAccountLedgerResponse.dart'
;
import
'../Models/commonModels/commonAccountdetailsResponse.dart'
;
import
'../Models/commonModels/commonAccountlistResponse.dart'
;
import
'../Models/financeModels/addPaymentRequestionResponse.dart'
;
import
'../Models/financeModels/addReceiptPaymentResponse.dart'
;
import
'../Models/financeModels/paymentRequesitionListsResponse.dart'
;
...
...
@@ -1894,4 +1898,105 @@ class ApiCalling {
return
null
;
}
}
static
Future
<
commonAccountlistResponse
?>
commonAccountListAPI
(
empId
,
session
,
page_number
,
company_name
,
mobile_number
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'page_number'
:
page_number
.
toString
(),
'company_name'
:
company_name
.
toString
(),
'mobile_number'
:
mobile_number
.
toString
()
};
final
res
=
await
post
(
data
,
commonAccountListUrl
,
{});
if
(
res
!=
null
)
{
debugPrint
(
res
.
body
);
return
commonAccountlistResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
commonAccountdetailsResponse
?>
commonAccountDetailsAPI
(
empId
,
session
,
account_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'account_id'
:
account_id
.
toString
(),
};
final
res
=
await
post
(
data
,
commonAccountLedgerAccountDetails
,
{});
if
(
res
!=
null
)
{
debugPrint
(
res
.
body
);
return
commonAccountdetailsResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
commonAccountLedgerFilterResponse
?>
commonAccountLedgerDropDownAPI
(
empId
,
session
,
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
};
final
res
=
await
post
(
data
,
commonAccountLedgerDropDownUrl
,
{});
if
(
res
!=
null
)
{
debugPrint
(
res
.
body
);
return
commonAccountLedgerFilterResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
static
Future
<
commonAccountLedgerResponse
?>
commonAccountLedgerListAPI
(
empId
,
session
,
account_id
)
async
{
try
{
Map
<
String
,
String
>
data
=
{
'emp_id'
:
(
empId
).
toString
(),
'session_id'
:
(
session
).
toString
(),
'account_id'
:
account_id
.
toString
(),
};
print
(
data
);
final
res
=
await
post
(
data
,
commonAccountLedgerListWithFilterUrl
,
{});
if
(
res
!=
null
)
{
debugPrint
(
res
.
body
);
return
commonAccountLedgerResponse
.
fromJson
(
jsonDecode
(
res
.
body
));
}
else
{
debugPrint
(
"Null Response"
);
return
null
;
}
}
catch
(
e
)
{
debugPrint
(
'hello bev=bug
$e
'
);
return
null
;
}
}
}
lib/services/api_names.dart
View file @
eadb9dd9
...
...
@@ -79,6 +79,8 @@ const commonAddAccountViewgetSubLocationUrl = "${baseUrl_test}get_sublocation_on
const
commonAddAccountCheckInputsUrl
=
"
${baseUrl_test}
check_common_add_account_fields"
;
const
commonAddAccountSubmit
=
"
${baseUrl_test}
common_add_account_submit"
;
const
commonAccountListUrl
=
"
${baseUrl_test}
common_account_list"
;
const
commonAccountLedgerDropDownUrl
=
"
${baseUrl_test}
common_account_ledger_list_view"
;
const
commonAccountLedgerListWithFilterUrl
=
"
${baseUrl_test}
common_account_ledger_list_submit_filter"
;
const
commonAccountLedgerAccountDetails
=
"
${baseUrl_test}
common_account_details"
;
\ No newline at end of file
pubspec.yaml
View file @
eadb9dd9
...
...
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version
:
1.0.
79
+8
3
version
:
1.0.
80
+8
4
environment
:
sdk
:
^3.7.2
...
...
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