DIGIT Docs
v2.3
  • DIGIT Knowledge Base
  • Local Governance
v2.3
  • Introducing Public Finance Management (iFIX)
    • Strategy & Approach
  • Platform
    • Release Notes
      • iFIX Core Release Notes
        • iFIX Core Build Updates
      • iFIX Adaptor Release Notes
        • iFIX Adaptor Build Updates
      • Migration to DIGIT Architecture
        • Migration Checklist
        • Migration Steps - iFIX
        • Migration Steps - Adapter
    • Specification
      • Functional Specifications
      • Technical Specification
        • Information Model
        • APIs
    • Architecture
      • Technology
    • Services
    • Roadmap
    • Source Code
    • Setup
      • iFIX Service Setup
      • Infrastructure Setup
        • Quickstart/Local Setup
        • On AWS
        • On Azure
      • Deploy Services
        • Deploy from your local machine
        • CI/CD
      • API Access Key
    • Configuration
      • Core Service Documents
        • Master Data Setup
          • Domain Services
            • iFIX Core Master Data Service
            • iFIX Core Fiscal Event Service
            • iFIX Core Fiscal Event Post-Processor
        • iFIX Core Data Cleanup
        • iFix Department Entity Service
        • iFix Client Management Service
          • Keycloak Setup
      • Configuring Master Data
      • Promotion Docs
        • Master Data Service Promotion Doc
        • mGramSeva iFIX Adapter
        • Department Entity Service Promotion
        • Fiscal Event And Fiscal Event Post-processor Service Promotion
        • MongoDB Migration
  • Products
    • mGramSeva
      • Functionalities
        • Login and Forgot Password
        • User Roles and Home Screen
        • Create Consumer
        • Search Consumer
        • Edit Consumer
        • View Consumer
        • Billing - Bulk Demand Generation
        • Billing - Metered Connection
        • Revenue Collection - Offline
        • Expenditure - Add Expense
        • Expenditure - Modify Expense
        • User Onboarding - Bulk Upload
        • User Onboarding/Walkthrough
        • Feedback - Post Payment
        • SMS Notifications
        • Home Page Notifications
        • Edit User Profile
        • Bill and Receipt PDF
        • Update Expense Search
        • Bulk Demand Generation for Non Metered
        • Demand/Bill Generation for Metered Connection
        • Household Register
        • Tabular Dashboard - Expense
        • Tabular Dashboard - Collection
        • Download Bills and Receipt
      • Architecture
        • Technology
      • Source Code
      • Documents
        • User Manual
        • Demo video
        • UI Mockups
        • mGramSeva UI
          • Application Permissions & Dependencies
        • Tech User Manual
          • Language Selection
          • Login
          • Update Password FTL
          • Forgot Password
          • Home
          • Edit Profile
          • Change Password
          • Generate Bill
          • Search Connection
          • Consumer Details
            • Create Consumer
            • Update Consumer
          • Expenses
            • Add Expenses
            • Search Expense Bills
            • Modify Expenses
          • Dashboard
            • Monthly Dashboard
            • Collections Dashboard
            • Expenditure Dashboard
          • Collect Payment
          • Consumer Feedback
          • Household Register
          • Bluetooth Thermal Printer Integration
          • Application Structure
        • Application Structure
        • Integration Testing
        • Integration Testing With Github Actions
        • Firebase Analytics Integration
        • Backend Services
          • mGramSeva - Water Services
          • mGramSeva - Water Service Calculator
          • mGramSeva e-Challan Service
          • mGramSeva - User Service
          • mGramSeva - Billing Service
          • mGramSeva - User OTP
          • iFix Adapter Integration Service
          • mGramSeva - Rollout Dashboard
          • mGramSeva Scheduler
          • mGramSeva- Services Re-Indexing
          • mGramSeva Dashboard
    • iFIX Adapter
      • Adapter Service Documents
        • iFIX Adapter Master Data Setup
        • mGramSeva iFIX Adapter Service
        • iFIX Adapter Master Data Service
        • iFix Adapter Services
      • Source Code
      • Installation
        • Local Setup
        • CI/CD
    • iFIX Dashboard
      • Features
      • Architecture
        • Technology
      • Source Code
      • Installation
        • Local Setup
        • CI/CD
      • Documents
        • iFIX Reference Dashboard
          • iFIX Fiscal Event Aggregator
  • Community
    • Ecosystem
      • News and Events
    • PFM Blogs
      • Why PFM Needs Fiscal Information Exchange Standards
      • Re-imagining Digital PFM in India
      • A Transformative Odyssey: The Impact of Smart Payments in Benefit Delivery
    • Discussions
    • Issues
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Link
  • Logic Implemented for Date Validation and File Attachments
  • File Attachments
  • Date Validation
  • File Path
  • API Details
  • Stack

Was this helpful?

Edit on GitHub
Export as PDF
  1. Products
  2. mGramSeva
  3. Documents
  4. Tech User Manual
  5. Expenses

Add Expenses

PreviousExpensesNextSearch Expense Bills

Last updated 2 years ago

Was this helpful?

Link

→ {base url}/mgramseva/home/addExpense

Enables employees to add expenses - the process of onboarding the end-users.

Add Expenses card is available on the home screen for defined user roles having the EXPENSE PROCESSING permission.

Clicking the Add Expense Record tile/card on the home screen navigates the user to Add Expenses screen.

The user enters the required details to add the expenses for the vendors.

If a user logs in for the first time then a walkthrough is populated following the same logic as in the home screen.

Clicking on the Submit button navigates the user to the Expenditure Added Successful acknowledgement screen.

Logic Implemented for Date Validation and File Attachments

File Attachments

Whenever this application is used on mobile, it prompts the user with two options - Camera and File Picker. If the application is opened on desktop or laptop browsers, the camera option is not available. The user has to select an image from the folder.

The maximum supported file size is 5 MB.

Date Validation

For validating the form we use the Form widget. Once the user selects a bill date the Bill Pay option is enabled. Else, the auto validation process is enabled.

Based on the bill date, the party selection date is enabled. If the user selects the party selection date first, the bill date can be selected only after entering the party date.

Whenever the bill paid option is true, the paid date field is enabled and mandatory. The date selection range allows date input only after the bill date and before the current date.

File Path

Primary Files -

Fields

Validations

Vendor Name*

[A-Za-z ]

Mobile Number*

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

Type of Expense*

None

Amount*

[0-9]

Bill Date*

Before Current Date and after party Bill Date.

Party Bill Date

Should be before the Bill Date

Bill Paid

None

Paid Date

After Bill date and less than current Date.

Attach Documents

Option to upload a single document, Supported files - PDF, JPEG, PNG (maximum 5MB)

Note: All fields are validated on Submit apart from the Mobile number which gets validated on change.

API Details

API

Params

Description

/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

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. + Add Expense Screen

Pop → Home Screen

Widgets Utilised from Library

Widgets

File Path

Description

BuildTextField

Text Field

AutoCompleteView

Suggestion Text Field

  • SelectFieldBuilder

(Primary File)

  • SearchSelectFieldBuilder

(Secondary File)

Searchable Drop down

DatePickerFieldBulder

Date Picker

CommonSuccessPage

Success Screen

BottomButtonBar

Button

This feature allows the user to take a picture or choose a single file. The plugin is used to implement this.

All content on this page by is licensed under a .

Image Picker
punjab-mgramseva/ExpenseDetails.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/WalkThroughContainer.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/expenseWalkThrough.dart at develop · egovernments/punjab-mgramseva
​
eGov Foundation
Creative Commons Attribution 4.0 International License
punjab-mgramseva/TextFieldBuilder.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/auto_complete.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/SelectFieldBuilder.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/SearchSelectFieldBuilder.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/DatePickerFieldBuilder.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/CommonSuccessPage.dart at develop · egovernments/punjab-mgramseva
punjab-mgramseva/BottonButtonBar.dart at develop · egovernments/punjab-mgramseva
Creative Commons License