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
14d01f4d
Commit
14d01f4d
authored
Jul 31, 2025
by
Sai Srinivas
Browse files
31-07-2025 By Sai Srinivas
Finance Module
parent
29665037
Changes
24
Show whitespace changes
Inline
Side-by-side
lib/screens/finance/paymentListPaymentRequisition.dart
View file @
14d01f4d
...
...
@@ -95,7 +95,7 @@ class _PaymentlistpaymentrequisitionState
final
requestLists
=
provider
.
paymentsList
;
return
Scaffold
(
resizeToAvoidBottomInset:
true
,
appBar:
appbar2
(
appBar:
appbar2
New
(
context
,
widget
.
pageTitleName
,
provider
.
resetForm
,
...
...
@@ -140,6 +140,7 @@ class _PaymentlistpaymentrequisitionState
),
],
),
0xFFFFFFFF
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
...
...
@@ -161,14 +162,40 @@ class _PaymentlistpaymentrequisitionState
shrinkWrap:
true
,
physics:
AlwaysScrollableScrollPhysics
(),
itemBuilder:
(
context
,
index
)
{
return
Container
(
return
InkResponse
(
onTap:
()
async
{
var
res
=
await
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Paymentdetailspaymentrequisition
(
pageName:
widget
.
pageTitleName
,
paymentRequestId:
requestLists
[
index
].
id
,
),
settings:
RouteSettings
(
name:
"Paymentdetailspaymentrequisition"
,
),
),
);
if
(
routeSettingName
==
"Paymentdetailspaymentrequisition"
)
{
print
(
"pld"
);
provider
.
paymentsListAPI
(
context
,
''
,
''
);
}
},
child:
Container
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
,
vertical:
10
,
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
,
vertical:
10
,
vertical:
5
,
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
...
...
@@ -182,16 +209,15 @@ class _PaymentlistpaymentrequisitionState
flex:
1
,
child:
Container
(
height:
50
,
width:
3
5
,
padding:
EdgeInsets
.
all
(
8
.0
),
width:
5
0
,
padding:
EdgeInsets
.
all
(
3
.0
),
decoration:
BoxDecoration
(
color:
Color
(
0xFFFFF3CE
),
borderRadius:
BorderRadius
.
circular
(
8
,
),
color:
AppColors
.
requested_bg_color
,
shape:
BoxShape
.
circle
),
child:
SvgPicture
.
asset
(
"assets/svg/fin_ic.svg"
,
"assets/svg/finance/rupee_ic.svg"
,
fit:
BoxFit
.
scaleDown
,
),
),
),
...
...
@@ -206,16 +232,18 @@ class _PaymentlistpaymentrequisitionState
Text
(
requestLists
[
index
]
.
receipientAccount
!,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
fontFamily:
"Jakarta
Medium
"
,
fontFamily:
"Jakarta
Regular
"
,
fontSize:
14
,
color:
AppColors
.
semi_black
,
),
),
Text
(
"
₹
${requestLists[index].
amount
}
"
,
"
${requestLists[index].
paymentDate
}
"
,
style:
TextStyle
(
fontFamily:
"Jakarta
Medium
"
,
fontFamily:
"Jakarta
Regular
"
,
fontSize:
14
,
color:
AppColors
.
app_blue
,
),
...
...
@@ -224,179 +252,28 @@ class _PaymentlistpaymentrequisitionState
),
),
),
// Expanded(
// flex: 2,
// child: Container(
// padding: EdgeInsets.symmetric(
// horizontal: 5,
// vertical: 10,
// ),
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8),
// color: Color(0xFFE3FFE0),
// ),
// child: Center(
// child: Text(
// requestLists[index].refType!,
// textAlign: TextAlign.center,
// style: TextStyle(
// fontFamily: "JakartaMedium",
// fontSize: 14,
// color: Color(0xFF0D9C00),
// ),
// ),
// ),
// ),
// ),
],
),
Divider
(
thickness:
0.5
,
color:
Color
(
0xFFD7D7D7
),
),
...
List
.
generate
(
5
,
(
j
)
{
final
headings
=
[
"To Account"
,
"Attachment"
,
"Request Mode"
,
"Payment Date"
,
"Note"
,
];
final
subHeadings
=
[
requestLists
[
index
].
payAccount
,
"View"
,
requestLists
[
index
].
requestMode
,
// requestLists[index].attachmentDirFilePath
requestLists
[
index
].
paymentDate
,
requestLists
[
index
].
description
,
];
if
(
headings
[
j
]
==
"Attachment"
&&
requestLists
[
index
]
.
attachmentViewFileName
==
""
)
{
return
SizedBox
.
shrink
();
}
return
Container
(
padding:
EdgeInsets
.
symmetric
(
vertical:
5
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
SizedBox
(
width:
10
),
Expanded
(
flex:
3
,
child:
Text
(
headings
[
j
],
"₹
${requestLists[index].amount}
"
,
maxLines:
1
,
textAlign:
TextAlign
.
right
,
style:
TextStyle
(
fontFamily:
"JakartaMedium"
,
fontSize:
14
,
color:
AppColors
.
semi_black
,
),
),
),
Expanded
(
child:
InkResponse
(
onTap:
j
!=
1
?
null
:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
,
)
=>
Fileviewer
(
fileName:
requestLists
[
index
]
.
attachmentViewFileName
!,
fileUrl:
requestLists
[
index
]
.
attachmentDirFilePath
!,
),
),
);
},
child:
Text
(
subHeadings
[
j
]
==
""
?
"-"
:
subHeadings
[
j
]
??
"-"
,
style:
TextStyle
(
fontSize:
14
,
color:
j
==
1
?
AppColors
.
app_blue
:
Color
(
0xFF818181
),
decoration:
j
==
1
?
TextDecoration
.
underline
:
TextDecoration
.
none
,
decorationColor:
j
==
1
?
AppColors
.
app_blue
:
AppColors
.
white
,
),
color:
AppColors
.
app_blue
,
),
),
),
],
),
);
}),
InkResponse
(
onTap:
()
async
{
var
res
=
await
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Paymentdetailspaymentrequisition
(
pageName:
widget
.
pageTitleName
,
paymentRequestId:
requestLists
[
index
].
id
,
),
settings:
RouteSettings
(
name:
"Paymentdetailspaymentrequisition"
,
),
),
);
if
(
routeSettingName
==
"Paymentdetailspaymentrequisition"
)
{
print
(
"pld"
);
provider
.
paymentsListAPI
(
context
,
''
,
''
);
}
},
child:
Container
(
padding:
EdgeInsets
.
symmetric
(
vertical:
5
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
"View Details"
,
style:
TextStyle
(
fontFamily:
"JakartaMedium"
,
fontSize:
14
,
color:
AppColors
.
app_blue
,
),
),
SizedBox
(
width:
5
),
SvgPicture
.
asset
(
"assets/svg/next_button.svg"
,
),
],
),
),
),
],
),
);
},
),
...
...
lib/screens/finance/paymentreceiptList.dart
View file @
14d01f4d
...
...
@@ -79,7 +79,7 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
final
requestLists
=
provider
.
receiptsList
;
return
Scaffold
(
resizeToAvoidBottomInset:
true
,
appBar:
appbar2
(
appBar:
appbar2
New
(
context
,
widget
.
pageTitleName
,
provider
.
resetForm
,
...
...
@@ -124,6 +124,7 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
),
],
),
0xFFFFFFFF
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
...
...
@@ -143,14 +144,39 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
shrinkWrap:
true
,
physics:
AlwaysScrollableScrollPhysics
(),
itemBuilder:
(
context
,
index
)
{
return
Container
(
return
InkResponse
(
onTap:
()
async
{
var
res
=
await
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Paymentreceiptdetails
(
pageName:
widget
.
pageTitleName
,
paymentRequestId:
requestLists
[
index
].
id
,
),
settings:
RouteSettings
(
name:
"Paymentreceiptdetails"
,
),
),
);
if
(
routeSettingName
==
"Paymentreceiptdetails"
)
{
debugPrint
(
"prd"
);
provider
.
paymentsListAPI
(
context
,
''
,
''
);
}
// if (res == true) {
// provider.paymentsListAPI(context, '', '');
// }
},
child:
Container
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
,
vertical:
10
,
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
,
vertical:
10
,
vertical:
5
,
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
...
...
@@ -164,16 +190,15 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
flex:
1
,
child:
Container
(
height:
50
,
width:
3
5
,
padding:
EdgeInsets
.
all
(
8
.0
),
width:
5
0
,
padding:
EdgeInsets
.
all
(
3
.0
),
decoration:
BoxDecoration
(
color:
Color
(
0xFFFFF3CE
),
borderRadius:
BorderRadius
.
circular
(
8
,
),
color:
AppColors
.
requested_bg_color
,
shape:
BoxShape
.
circle
),
child:
SvgPicture
.
asset
(
"assets/svg/fin_ic.svg"
,
"assets/svg/finance/rupee_ic.svg"
,
fit:
BoxFit
.
scaleDown
,
),
),
),
...
...
@@ -188,172 +213,45 @@ class _PaymentreceiptlistState extends State<Paymentreceiptlist> {
Text
(
requestLists
[
index
]
.
receipientAccount
!,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
fontFamily:
"Jakarta
Medium
"
,
fontFamily:
"Jakarta
Regular
"
,
fontSize:
14
,
color:
AppColors
.
semi_black
,
),
),
Text
(
"
₹
${requestLists[index].
amount
}
"
,
"
${requestLists[index].
receiptDate
}
"
,
style:
TextStyle
(
fontFamily:
"Jakarta
Medium
"
,
fontFamily:
"Jakarta
Regular
"
,
fontSize:
14
,
color:
AppColors
.
app_blue
,
),
),
],
),
color:
AppColors
.
grey_semi
,
),
),
],
),
Divider
(
thickness:
0.5
,
color:
Color
(
0xFFD7D7D7
),
),
...
List
.
generate
(
5
,
(
j
)
{
final
headings
=
[
"Receipt Account"
,
"Attachment"
,
"Request Mode"
,
"Receipt Date"
,
"Note"
,
];
final
subHeadings
=
[
requestLists
[
index
].
receipientAccount
,
"View"
,
requestLists
[
index
].
requestMode
,
// requestLists[index].attachmentDirFilePath
requestLists
[
index
].
receiptDate
,
requestLists
[
index
].
description
,
];
if
(
headings
[
j
]
==
"Attachment"
&&
requestLists
[
index
]
.
attachmentViewFileName
==
""
)
{
return
SizedBox
.
shrink
();
}
return
Container
(
padding:
EdgeInsets
.
symmetric
(
vertical:
5
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Expanded
(
child:
Text
(
headings
[
j
],
style:
TextStyle
(
fontFamily:
"JakartaMedium"
,
fontSize:
14
,
color:
AppColors
.
semi_black
,
),
),
),
SizedBox
(
width:
10
),
Expanded
(
child:
InkResponse
(
onTap:
j
!=
1
?
null
:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
,
)
=>
Fileviewer
(
fileName:
requestLists
[
index
]
.
attachmentViewFileName
!,
fileUrl:
requestLists
[
index
]
.
attachmentDirFilePath
!,
),
),
);
},
flex:
3
,
child:
Text
(
subHeadings
[
j
]
==
""
?
"-"
:
subHeadings
[
j
]
??
"-"
,
style:
TextStyle
(
fontSize:
14
,
color:
j
==
1
?
AppColors
.
app_blue
:
Color
(
0xFF818181
),
decoration:
j
==
1
?
TextDecoration
.
underline
:
TextDecoration
.
none
,
decorationColor:
j
==
1
?
AppColors
.
app_blue
:
AppColors
.
white
,
),
),
),
),
],
),
);
}),
InkResponse
(
onTap:
()
async
{
var
res
=
await
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Paymentreceiptdetails
(
pageName:
widget
.
pageTitleName
,
paymentRequestId:
requestLists
[
index
].
id
,
),
settings:
RouteSettings
(
name:
"Paymentreceiptdetails"
,
),
),
);
if
(
routeSettingName
==
"Paymentreceiptdetails"
)
{
debugPrint
(
"prd"
);
provider
.
paymentsListAPI
(
context
,
''
,
''
);
}
// if (res == true) {
// provider.paymentsListAPI(context, '', '');
// }
},
child:
Container
(
padding:
EdgeInsets
.
symmetric
(
vertical:
5
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
"View Details"
,
"₹
${requestLists[index].amount}
"
,
textAlign:
TextAlign
.
right
,
maxLines:
1
,
style:
TextStyle
(
fontFamily:
"JakartaMedium"
,
fontSize:
14
,
color:
AppColors
.
app_blue
,
),
),
SizedBox
(
width:
5
),
SvgPicture
.
asset
(
"assets/svg/next_button.svg"
,
),
],
),
),
),
],
),
),
);
},
),
...
...
lib/screens/splash.dart
View file @
14d01f4d
...
...
@@ -225,6 +225,10 @@ class _SplashState extends State<Splash> {
);
spalshProvider
.
initPackageInfo
();
spalshProvider
.
handleVersionCheck
(
context
);
if
(
connection
==
'Online'
)
{
print
(
"camer here"
);
spalshProvider
.
handleVersionCheck
(
context
);
}
});
}
...
...
@@ -350,6 +354,13 @@ class _SplashState extends State<Splash> {
default
:
connection
=
'Offline'
;
}
if
(
connection
==
'Online'
)
{
print
(
"camer here"
);
Provider
.
of
<
SplashVersionNotifier
>(
context
,
listen:
false
,
).
handleVersionCheck
(
context
);
}
return
(
connection
==
'Online'
)
?
SafeArea
(
top:
false
,
...
...
pubspec.yaml
View file @
14d01f4d
...
...
@@ -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.9
4
+9
8
version
:
1.0.9
5
+9
9
environment
:
sdk
:
^3.7.2
...
...
Prev
1
2
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