Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 5.82 KB

File metadata and controls

66 lines (40 loc) · 5.82 KB

Expenditure Dashboard

Overview

Users are redirected to this screen when they select the GPWSC Dashboard option on the home screen.

Link → {base url}/mgramseva/home/dashboard?tab=1

User Interaction On Screen

  • Users can select the year from the drop-down which contains the list of financial years.
  • From the text field, users can search for the expenses using Bill ID or vendor name.
  • Users can see the expense data for paid and pending with respective tabs.
  • Initially, only 10 expenses are loaded for the selected tab. The pagination dropdown and right arrow click enable the user to load and view more expense records.
  • Selecting any Bill ID navigates the users to the Expense update screen.

Files Path

Primary Files:punjab-mgramseva/Dashboard.dart at develop · egovernments/punjab-mgramsevapunjab-mgramseva/search_expense.dart at develop · egovernments/punjab-mgramseva

API Details

End Point Request Method Request Info
/echallan-services/eChallan/v1/_create POST

tenantId : {}
offset ; {}
limit : {}
fromDate : {}
toDate : {}
vendorName : {}
challanNo : {}
toDate : {}
freeSearch : {}
status : {}
isBillCount : {}

sortOrder ; {}
sortBy : {}
isBillPaid : {}

Stack

1 → Home Screen. + Dashboard expenditure screen + update expense screen

Pop → Dashboard expenditure screen → Home Screen

2 → Home Screen. + Dashboard expenditure screen + update expense screen + expense update success

Pop → Home Screen

Widgets utilised from Library

Widgets File Path Description
Pagination https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/pagination.dart Pagination
BuildTextField https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/TextFieldBuilder.dart Text Field
BillsTable https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/components/Dashboard/BillsTable.dart Table
LabelText https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/LabelText.dart Subtitle

Role Access Mapping

case Routes.DASHBOARD:
  return ['SUPERUSER', 'DASHBOARD_VIEWER'];

Files Path

Model → punjab-mgramseva/expenses_details.dart at develop · egovernments/punjab-mgramseva

View → punjab-mgramseva/Dashboard.dart at develop · egovernments/punjab-mgramseva

punjab-mgramseva/search_expense.dart at develop · egovernments/punjab-mgramseva

Controller → punjab-mgramseva/dashboard_provider.dart at develop · egovernments/punjab-mgramseva

punjab-mgramseva/expenses_repo.dart at develop · egovernments/punjab-mgramseva