Skip to content

Commit

Permalink
Merge pull request #702 from odisha-muktasoft/UCEM-765-1
Browse files Browse the repository at this point in the history
UCEM-765 : meaasurement update fix
  • Loading branch information
Tulika-eGov authored Oct 11, 2024
2 parents 898d3ba + 37dbb5d commit 483434f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@egovernments/digit-ui-module-dss": "1.5.52",
"@egovernments/digit-ui-module-attendencemgmt": "0.4.11",
"@egovernments/digit-ui-module-contracts": "0.4.11",
"@egovernments/digit-ui-module-measurement":"0.2.12",
"@egovernments/digit-ui-module-measurement":"0.2.13",
"@egovernments/digit-ui-module-estimate": "0.4.17",
"@egovernments/digit-ui-module-masters": "0.4.16",
"@egovernments/digit-ui-module-project": "0.4.12",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-module-measurement",
"version": "0.2.12",
"version": "0.2.13",
"description": "Measurement Module UI",
"main": "dist/index.js",
"module": "dist/index.modern.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const measurement= {
}

/* added as a temporary fix that sends entrydate */
measurement.entryDate=new Date().getTime();
measurement.entryDate = data?.entryDate ? data?.entryDate : new Date().getTime();
const transformedData = {
measurements: [
measurement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const getDefaultValues = (data, t, mbNumber) => {
const Pward = projectWard ? t(`${headerLocale}_ADMIN_${projectWard}`) : "";
// const city = projectLoc ? t(`${Digit.Utils.locale.getTransformedLocale(projectLoc)}`) : "";
const city = projectLoc ? t(`${headerLocale}_ADMIN_${projectLoc}`) : "";
const entryDate = data?.allMeasurements?.filter(ob => ob?.measurementNumber === mbNumber)?.[0]?.entryDate;

const projectLocation = `${Pward ? Pward + ", " : ""}${city}`;
let CurrentStartDate = period?.startDate;
Expand Down Expand Up @@ -163,7 +164,8 @@ export const getDefaultValues = (data, t, mbNumber) => {
measurementPeriod: measurementPeriod,
CurrentStartDate,
CurrentEndDate,
mbNumber
mbNumber,
entryDate
};

return { SOR, NONSOR, contractDetails, uploadedDocs, documents:measurement?.documents || allMeasurements?.[0]?.documents };
Expand Down
2 changes: 1 addition & 1 deletion frontend/micro-ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@egovernments/digit-ui-module-dss": "1.5.52",
"@egovernments/digit-ui-module-attendencemgmt": "0.4.11",
"@egovernments/digit-ui-module-contracts": "0.4.11",
"@egovernments/digit-ui-module-measurement":"0.2.12",
"@egovernments/digit-ui-module-measurement":"0.2.13",
"@egovernments/digit-ui-module-estimate": "0.4.17",
"@egovernments/digit-ui-module-masters": "0.4.16",
"@egovernments/digit-ui-module-project": "0.4.12",
Expand Down

0 comments on commit 483434f

Please sign in to comment.