Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Link.→ {base url}/mgramseva/home/searchExpense/result/updateExpense

Provides Employees to modify/edit the expenses based on the status of Payment.

Update Expenses card will be shows in the home screen who is having a Role of “EXPENSE PROCESSING“

On clicking on Update Expenditure in Expense Search Results Screen, user will be navigated to the Edit Expense Bills Screen

Where user will can edit the previously provided expense details for the vendors.

On clicking on Submit button , User will be navigated to the Modified Expenditure Success screen.

Logic Implemented for Paid or Unpaid Bills :

Use Case1: When the status is “Unpaid”

Should allow to modify all the details except the Bill id. User will be able to Mark the Bill as “Cancelled” using option provided.

Use Case2: When the status is “Paid”

Would not allow to modify any details. But the user will be able to Mark the Bill as “Cancelled” using option provided.

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*

[A-Za-z ]

2

Mobile Number*

[0-9] & is mandatory only if a new vendor is added

3

Type of Expense*

None

4

Amount*

[0-9]

5

Bill Date*

Before Current Date and after party Bill Date.

6

Party Bill Date

Should be before the 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

/egov-mdms-service/v1/_search

[{"moduleName": "Expense", "masterDetails": [{"name": "ExpenseType"},]}, {"moduleName": "BillingService", "masterDetails": [{"name": "BusinessService"}, {"name": "TaxHeadMaster"},]}]

To get the Expense Type for the Dropdown

2

egov.org.in/vendor/v1/_search

tenantId: {}

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

  • No labels