Stock Management

Overview

This enables a user to manage stocks, besides facilitating stock reconciliation.

User actions

On this page, the following actions can be performed:

  • After a successful login as a warehouse manager, a user lands on the home screen which consists of "Manage Stock", and "Stock Reconciliation".-

Manage Stocks

This screen consists of the following types of transactions that take place for the the inventory:

  • Stock Receipt

  • Stock Issued

  • Stock Returned

  • Stock Damaged

  • Stock Loss

Stock Receipt

  • When a user clicks on record stock receipt, the warehouse details screen will appear.

  • The latitude/longitude captures the geo-location of the warehouse which can be fetched with the help of the location icon within the field.

  • Clicking on the next button will navigate the user to the "Received Stock" details screen.

  • The "Receipt Stock Details" form has some mandatory fields: product, received from warehouse, and quantity received.

  • The optional fields include waybill number, quantity indicated on waybill, transport type, vehicle number, and comments.

  • Clicking on the submit button will take the user to the success page.

Record Stock Issued

  • This screen captures the mandatory fields: Product, Issued to warehouse, and the quantity.

  • The optional fields include waybill number, quantity indicated on waybill, transport type, vehicle number and comments.

  • Clicking on the submit button will go to the success page.

Returned Stock Details

This screen captures the mandatory fields: Product, returned to warehouse, and quantity returned.

The optional fields are waybill number, quantity indicated on waybill, transport type, vehicle number, and comments.

Clicking on the submit button will take the user to the success page.

Damaged Stock Details

  • This screen captures the mandatory fields: Product, damaged during, received from, and quantity damaged.

  • The optional fields include waybill number, quantity indicated on waybill, transport type, vehicle number, and comments.

  • Clicking on the submit button will take he user to the success page.

Lost Stock Details

This screen captures the mandatory fields: Product, lost during, received from, and quantity lost.

The optional fields are wWaybill Number, quantity indicated on waybill, transport type, vehicle number, and comments.

Clicking on the submit button will take the user to the success page.

Stock Reconciliation

  • When the user clicks on the stock reconciliation button on the home screen, he/she is navigated to this screen where he/she needs to verify whether the physical count and calculated stock values are the same or not.

  • In the select product field, the user needs to select a product from the dropdown.

  • There are warehouse name and administrative area fields as well, all of which are mandatory.

API details

End PointRequest MethodRequest Info

/stock/v1/bulk/_create

POST

{
  "RequestInfo": {
    "authToken": "string"
  },
  "Stock": [
    {
      "clientReferenceId": "string",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "string",
      "quantity": 0,
      "wayBillNumber": "string",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "transactionType": "RECEIVED",
      "transactionReason": "RECEIVED",
      "transactingPartyId": "string",
      "transactingPartyType": "WAREHOUSE",
    }
  ]
}

/stock/v1/bulk/_update

POST

{
  "RequestInfo": {
    "authToken": "string"
  },
  "Stock": [
    {
      "id":"UUID"
      "clientReferenceId": "string",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "string",
      "quantity": 0,
      "wayBillNumber": "string",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "transactionType": "RECEIVED",
      "transactionReason": "RECEIVED",
      "transactingPartyId": "string",
      "transactingPartyType": "WAREHOUSE",
    }
  ]
}      

/stock/v1/bulk/_search

POST

{
  "RequestInfo": {
    "authToken": "string"
  },
  "Stock": {
    "id": [
      "string"
    ],
    "clientReferenceId": [
      "string"
    ],
    "facilityId": "FacilityA",
    "productVariantId": "string",
    "referenceId": "C-1",
  }
}

/stock/reconciliation/v1/bulk/_create

POST

{
  "RequestInfo": {
    "authToken": "string"
  },
  "StockReconciliation": [
    {
      "clientReferenceId": "string",
      "tenantId": "tenantA",
      "facilityId": "FacilityA",
      "productVariantId": "string",
      "referenceId": "C-1",
      "referenceIdType": "PROJECT",
      "physicalCount": 0,
      "calculatedCount": 0,
      "commentsOnReconciliation": "string",
      "dateOfReconciliation": 1663218161,
      "rowVersion": 0
    }
  ]
}

/stock/reconciliation/v1/_search

POST

{
  "RequestInfo": {
    "authToken": "string"
  },
  "StockReconciliation": {
    "id": [
      "string"
    ],
    "clientReferenceId": [
      "string"
    ],
    "facilityId": "FacilityA",
    "productVariantId": "string"
  }
}

File Path : https://github.com/egovernments/health-campaign-field-worker-app/tree/master/apps/health_campaign_field_worker_app/lib/pages/inventory

Last updated

https://creativecommons.org/licenses/by/4.0/