Modify Expenses
Link.→ {base url}/mgramseva/home/searchExpense/result/updateExpense
Enables employees to modify/edit the expenses based on the status of the payment.
Update Expenses card is visible on the home screen for defined user roles that have EXPENSE PROCESSING permission.
Clicking on the Update Expenditure card in the expense search results screen navigates the user to the Edit Expense Bills screen.
Users can edit the previously populated expense details for the vendors.
Clicking on the Submit button navigates the users to the Modified Expenditure Success screen.
Logic Implemented for Paid or Unpaid Bills
Use Case1: When the status is “Unpaid”
Allows modification of all the details except the Bill Id. Users can Mark the Bill as “Cancelled” by checking on the option.
Use Case2: When the status is “Paid”
Cannot modify any details. But the users can Mark the Bill as “Cancelled” by checking the option.
File Path
Primary Files - https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/AddExpense/ExpenseDetails.dart ,
Field Validations
SL | Fields | Validations |
---|---|---|
1 | Vendor Name* |
|
2 | Mobile Number* |
|
3 | Type of Expense* | None |
4 | Amount* |
|
5 | Bill Date* | Before Current Date and after party Bill Date. |
6 | Party Bill Date |
|
7 | Bill Paid | None |
8 | Paid Date | After Bill date and less than current Date. |
9 | Attach Documents | Option to upload a single document, Supported files - PDF, JPEG, PNG (maximun 5MB) |
10 | Mark this Bill as Cancelled | None |
API Details
SL | API | Params | Description |
---|---|---|---|
1 |
|
| To get the Expense Type for the Dropdown |
2 |
|
| To get the list of vendors in the selected tenant for the suggestion text box - Vendor Name |
Stack
1 → Home Screen. + Search Expense Screen + Expense Results Screen + Edit Expense Bills Screen
Pop → Expense Results Screen
Widgets Utilised from Library
SL No | Widgets | File Path | Description |
---|---|---|---|
1 |
| Text Field | |
2 |
| Suggestion Text Field | |
3 |
(Primary File)
(Secondary File) | Searchable Drop down | |
4 |
| Date Picker | |
5 |
| Success Screen | |
6 |
| Button |