Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Develop #888

Closed
wants to merge 167 commits into from
Closed
Show file tree
Hide file tree
Changes from 95 commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
28b4751
added currentmonthRoundOff and totalRoundOff in mapOfDemandDetailList
Taniya1493 Jul 8, 2024
279971f
updated DemandService
Taniya1493 Jul 8, 2024
b6f6417
Updated name for totalAreasRoundOff
Taniya1493 Jul 8, 2024
d728c12
HRMS Search change by Nipun
Hari-egov Jul 8, 2024
de2fcff
Dropdown City Selection is optimized
Hari-egov Jul 9, 2024
2fe7dda
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
Hari-egov Jul 11, 2024
efed9ee
ISTE-224
Saloni-eGov Jul 15, 2024
e350362
ISTE-224
Saloni-eGov Jul 15, 2024
9fbd2da
ISTE-224
Saloni-eGov Jul 15, 2024
291385f
ISTE-224
Saloni-eGov Jul 15, 2024
e072b18
ISTE-210 FIx
Hari-egov Jul 15, 2024
67f7a2a
ISTE-238 Fix
Hari-egov Jul 15, 2024
08454d9
ISTE-239
Hari-egov Jul 15, 2024
fccf62f
ISTE-240 -Fix
Hari-egov Jul 15, 2024
2709c88
ISTE-244-Fix
Hari-egov Jul 15, 2024
51bd0f7
ISTE-224
Saloni-eGov Jul 16, 2024
ee7496d
ISTE-245
Hari-egov Jul 16, 2024
421c7a9
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
Hari-egov Jul 16, 2024
68fd5de
ISTE-224
Saloni-eGov Jul 16, 2024
6aa0ee6
ISTE-224
Saloni-eGov Jul 16, 2024
ee0e507
ISTE-224
Saloni-eGov Jul 16, 2024
d19315d
ISTE-224
Saloni-eGov Jul 16, 2024
1af44f1
ISTE-241 and ISTE-240
Hari-egov Jul 16, 2024
18bed51
ISTE-240 -FIX
Hari-egov Jul 17, 2024
2821bae
ISTE-229
Saloni-eGov Jul 17, 2024
db0d337
ISTE-229
Saloni-eGov Jul 17, 2024
4630df8
ledger report view added and API call function added
Hari-egov Jul 18, 2024
611b995
ISTE-186
Hari-egov Jul 18, 2024
d0bc522
ISTE-275,246,243,ISTE-254,
Hari-egov Jul 18, 2024
e70ce6c
ISTE-229
Saloni-eGov Jul 19, 2024
e834834
ISTE-229
Saloni-eGov Jul 19, 2024
8185a33
ISTE-229
Saloni-eGov Jul 19, 2024
824fdec
ISTE-229
Saloni-eGov Jul 19, 2024
ce54eda
ISTE-229
Saloni-eGov Jul 19, 2024
40d3b97
ISTE-229
Saloni-eGov Jul 22, 2024
01e54c8
ISTE-229
Saloni-eGov Jul 22, 2024
d8b0c03
ISTE-229
Saloni-eGov Jul 22, 2024
c9454de
ISTE-229
Saloni-eGov Jul 22, 2024
cc99548
ISTE-229
Saloni-eGov Jul 22, 2024
611f7bf
ISTE-229
Saloni-eGov Jul 22, 2024
fbc4af7
ISTE-229
Saloni-eGov Jul 22, 2024
d1d9a46
ISTE-229
Saloni-eGov Jul 22, 2024
7c59091
ISTE-229
Saloni-eGov Jul 22, 2024
bcf8c7b
ISTE-229
Saloni-eGov Jul 22, 2024
8234110
ISTE-229
Saloni-eGov Jul 22, 2024
f7ad737
ISTE-229
Saloni-eGov Jul 22, 2024
3bd19e7
ISTE-229
Saloni-eGov Jul 23, 2024
4b6aad3
ISTE-229
Saloni-eGov Jul 23, 2024
22cc939
ISTE-229
Saloni-eGov Jul 23, 2024
b29c34a
ISTE-229
Saloni-eGov Jul 23, 2024
368bc82
ISTE-229
Saloni-eGov Jul 23, 2024
6f2069f
ISTE-229
Saloni-eGov Jul 23, 2024
2eca768
ISTE-229
Saloni-eGov Jul 24, 2024
251fd7c
ISTE-229
Saloni-eGov Jul 24, 2024
a6b5533
ISTE-229
Saloni-eGov Jul 24, 2024
0728cdd
ISTE-229
Saloni-eGov Jul 24, 2024
e13a3f0
ISTE-229
Saloni-eGov Jul 24, 2024
b01e061
ISTE-229
Saloni-eGov Jul 24, 2024
1feb674
ISTE-229
Saloni-eGov Jul 24, 2024
3a8a234
ISTE-229
Saloni-eGov Jul 24, 2024
3d3d2bf
ISTE-229
Saloni-eGov Jul 25, 2024
7dd84a3
ISTE-229
Saloni-eGov Jul 25, 2024
471cf49
Merge branch 'refs/heads/develop' into ISTE-229
Saloni-eGov Jul 25, 2024
1d3fe03
ISTE-274
palak-egov Jul 26, 2024
63542a5
ISTE-237 - FIX
Hari-egov Jul 26, 2024
b544764
ISTE-274 (#863)
palak-egov Jul 26, 2024
3efae56
ledger changes
Hari-egov Jul 29, 2024
c7f49e5
ISTE -277 FIX
Hari-egov Jul 29, 2024
fec65b8
updating es host
palak-egov Jul 29, 2024
d421ae7
Merge branch 'hrms-fuzzy' into develop
debasishchakraborty-egovt Jul 29, 2024
e65f347
Merge pull request #864 from palak-egov/develop
debasishchakraborty-egovt Jul 29, 2024
16890be
ISTE-229
Saloni-eGov Jul 29, 2024
72f9578
ISTE--282 FIX
Hari-egov Jul 29, 2024
d603564
ISTE-189 - FIX
Hari-egov Jul 29, 2024
67cf72b
ISTE-251 - FIX
Hari-egov Jul 29, 2024
608910c
Update ElasticSearchRepository.java
palak-egov Jul 30, 2024
7fb1e6e
Merge pull request #868 from palak-egov/patch-2
debasishchakraborty-egovt Jul 30, 2024
bc5c6ef
ISTE-229
Saloni-eGov Jul 30, 2024
16e3125
ledger step 2
Hari-egov Jul 30, 2024
8b23985
ISTE-229
Saloni-eGov Jul 30, 2024
53b73b2
ISTE-229
Saloni-eGov Jul 30, 2024
9ade404
Update FuzzySearchService.java
palak-egov Jul 30, 2024
b0636b7
ISTE-229
Saloni-eGov Jul 30, 2024
5c6f91d
ISTE-229
Saloni-eGov Jul 30, 2024
51d0d67
Merge pull request #869 from palak-egov/patch-3
debasishchakraborty-egovt Jul 30, 2024
0841114
ISTE-229
Saloni-eGov Aug 1, 2024
a7465a9
Leadger Changes
Hari-egov Aug 1, 2024
d96d496
leadger report update
Hari-egov Aug 1, 2024
2d6b83f
ledger pagination
Hari-egov Aug 1, 2024
49a292b
Merge branch 'ISTE-282' of https://github.com/egovernments/punjab-mgr…
Hari-egov Aug 1, 2024
c0233a8
app config cleared
Hari-egov Aug 1, 2024
cf7e312
ISTE-229
Saloni-eGov Aug 1, 2024
e665b86
ISTE-229
Saloni-eGov Aug 1, 2024
591c6fa
Merge pull request #870 from egovernments/ISTE-282-bkp
pradeepkumarcm-egov Aug 1, 2024
60e66bb
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
Hari-egov Aug 1, 2024
bdeb0fb
ISTE-229
Saloni-eGov Aug 1, 2024
ffa1d4a
Hide Leadger main menu
Hari-egov Aug 1, 2024
e6196c9
ISTE-229
Saloni-eGov Aug 1, 2024
f3947f6
ISTE-189-FIX
Hari-egov Aug 2, 2024
ec123ae
Table - Pagination arrow
Hari-egov Aug 2, 2024
26e7375
commit
Hari-egov Aug 2, 2024
7a6d9b6
Merge pull request #851 from egovernments/ISTE-189
pradeepkumarcm-egov Aug 2, 2024
61e125d
Added Water Search Query for planesearch
Taniya1493 Aug 2, 2024
60c5c02
Update FuzzySearchQueryBuilder.java
palak-egov Aug 5, 2024
f5967b1
Update application.properties
palak-egov Aug 5, 2024
b2def2f
Merge pull request #873 from palak-egov/patch-4
pradeepkumarcm-egov Aug 5, 2024
458d9db
Update FuzzySearchQueryBuilder.java
palak-egov Aug 5, 2024
679e6aa
updated planesearch query
Taniya1493 Aug 5, 2024
81979fc
Merge pull request #872 from egovernments/water-planesearch
pradeepkumarcm-egov Aug 5, 2024
ed9b746
Merge pull request #874 from palak-egov/patch-5
pradeepkumarcm-egov Aug 5, 2024
7bea11b
Update FuzzySearchService.java
palak-egov Aug 5, 2024
e24ea4f
Merge pull request #875 from palak-egov/patch-6
pradeepkumarcm-egov Aug 5, 2024
7e71d95
ISTE-229
Saloni-eGov Aug 5, 2024
3a865a7
ISTE-229
Saloni-eGov Aug 5, 2024
a74ec00
updated plain query for water
Taniya1493 Aug 5, 2024
8d4efdd
Merge pull request #876 from egovernments/ISTE-229
pradeepkumarcm-egov Aug 5, 2024
bf0ecb3
Merge pull request #877 from egovernments/Taniya-water
pradeepkumarcm-egov Aug 5, 2024
db3824d
updated query
Taniya1493 Aug 5, 2024
3bff38e
Merge pull request #878 from egovernments/Taniya-water
pradeepkumarcm-egov Aug 5, 2024
1be043c
added holderSelectValues
Taniya1493 Aug 6, 2024
cc34a75
Merge pull request #879 from egovernments/Taniya-water1
pradeepkumarcm-egov Aug 6, 2024
4a11e7f
ISTE-229
Saloni-eGov Aug 6, 2024
7c76dd0
Merge branch 'refs/heads/develop' into ISTE-229
Saloni-eGov Aug 6, 2024
bc093ed
adding user data
palak-egov Aug 6, 2024
3915763
Merge pull request #881 from palak-egov/hrms-fuzzy
debasishchakraborty-egovt Aug 6, 2024
58e398a
ISTE-292-FIX
Hari-egov Aug 7, 2024
43be3ee
Ledger Changes
Hari-egov Aug 7, 2024
0fa7f44
commit MDMS changes - revert
Hari-egov Aug 7, 2024
d9d3beb
PKG JSON REVERT CHANGES
Hari-egov Aug 7, 2024
b70f21f
babel fix
Hari-egov Aug 8, 2024
5a8eaf4
Fuzzy search revert back User Name Search
Hari-egov Aug 8, 2024
da6f6f7
UPDATE FIX
Hari-egov Aug 8, 2024
f6933a2
Merge branch 'master' into develop
Taniya-eGov Aug 8, 2024
7ae0d2c
Fuzzy search update
Hari-egov Aug 8, 2024
6bd1d0f
Build Failed FIX
Hari-egov Aug 8, 2024
f9c815c
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
Hari-egov Aug 8, 2024
c61f398
ISTE-352
Hari-egov Aug 8, 2024
107fca2
292-Localization
Hari-egov Aug 8, 2024
f9184ff
Update FuzzySearchQueryBuilder.java
palak-egov Aug 8, 2024
8af8e68
Merge pull request #890 from palak-egov/patch-2
debasishchakraborty-egovt Aug 8, 2024
9b6d4cf
Merge pull request #867 from egovernments/hrms-fuzzy
pradeepkumarcm-egov Aug 8, 2024
0ae9fab
ISTE-353 Fix
Hari-egov Aug 8, 2024
2a8dc81
OLD_CONN ID UPDATED
Hari-egov Aug 8, 2024
9a84d13
old _conn id
Hari-egov Aug 8, 2024
ea0d3ec
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
Hari-egov Aug 8, 2024
55b0a9e
Merge pull request #893 from egovernments/ISTE-292-Dev-Merge
pradeepkumarcm-egov Aug 9, 2024
6e64334
base URL CLEAR
Hari-egov Aug 9, 2024
c036ce6
ISTE-229
Saloni-eGov Aug 9, 2024
0695131
ISTE-229
Saloni-eGov Aug 9, 2024
0021659
ISTE-229
Saloni-eGov Aug 9, 2024
8b4c730
Update application.properties
palak-egov Aug 9, 2024
668eef4
Merge pull request #896 from palak-egov/patch-4
debasishchakraborty-egovt Aug 9, 2024
f8f172c
validations updated
Hari-egov Aug 9, 2024
49df0ad
Merge branch 'ISTE-292-Dev-Merge' of https://github.com/egovernments/…
Hari-egov Aug 9, 2024
73cc5d0
ISTE-229
Saloni-eGov Aug 9, 2024
7a65244
Merge pull request #894 from egovernments/ISTE-292-Dev-Merge
pradeepkumarcm-egov Aug 9, 2024
cd25f8e
ISTE-229
Saloni-eGov Aug 9, 2024
b57214c
ISTE-229
Saloni-eGov Aug 9, 2024
9f9cf75
ISTE-229
Saloni-eGov Aug 9, 2024
8fdb8fe
data type changed double to num
Hari-egov Aug 9, 2024
9af8c3a
Merge branch 'develop' of https://github.com/egovernments/punjab-mgra…
Hari-egov Aug 9, 2024
587b476
ISTE-229
Saloni-eGov Aug 9, 2024
10a704f
Merge pull request #897 from egovernments/ISTE-292-Dev-Merge
pradeepkumarcm-egov Aug 9, 2024
f1f9d86
ISTE-229
Saloni-eGov Aug 9, 2024
7fd9f1c
Merge pull request #898 from egovernments/ISTE-229
pradeepkumarcm-egov Aug 9, 2024
ac4dd01
Ledger update
Hari-egov Aug 9, 2024
4373e28
Merge pull request #899 from egovernments/ISTE-292-Dev-Merge
pradeepkumarcm-egov Aug 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ public class AggregatedDemandDetailResponse {

private BigDecimal currentmonthTotalDue;

private BigDecimal currentmonthRoundOff;

private BigDecimal totalAreas;

private BigDecimal totalAreasWithPenalty;

private BigDecimal totalAreasRoundOff;

private BigDecimal netdue;

private BigDecimal netDueWithPenalty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,19 +720,29 @@ public int compare(Demand d1, Demand d2) {
BigDecimal netdue = BigDecimal.ZERO;
BigDecimal netDueWithPenalty = BigDecimal.ZERO;
BigDecimal totalApplicablePenalty =BigDecimal.ZERO;
BigDecimal currentmonthRoundOff=BigDecimal.ZERO;
BigDecimal totalAreasRoundOff=BigDecimal.ZERO;

currentmonthBill = currentMonthDemandDetailList.stream()
.filter(dd -> dd.getTaxHeadMasterCode().equals("10101")) // filter by taxHeadCode
.map(dd -> dd.getTaxAmount().subtract(dd.getCollectionAmount())) // map to the balance between taxAmount and collectedAmount
.reduce(BigDecimal.ZERO, BigDecimal::add);

currentmonthRoundOff = currentMonthDemandDetailList.stream()
.filter(dd -> dd.getTaxHeadMasterCode().equals("WS_Round_Off")) // filter by taxHeadCode
.map(dd -> dd.getTaxAmount().subtract(dd.getCollectionAmount())) // map to the balance between taxAmount and collectedAmount
.reduce(BigDecimal.ZERO, BigDecimal::add);
log.info("currentmonthRoundOff::::"+currentmonthRoundOff);

log.info("currentMonthDemandDetailList::::"+currentMonthDemandDetailList);
currentMonthPenalty = currentMonthDemandDetailList.stream()
.filter(dd -> dd.getTaxHeadMasterCode().equals("WS_TIME_PENALTY")) // filter by taxHeadCode
.map(dd -> dd.getTaxAmount().subtract(dd.getCollectionAmount())) // map to the balance between taxAmount and collectedAmount
.reduce(BigDecimal.ZERO, BigDecimal::add);
log.info("currentMonthDemandDetailListafter::::"+currentMonthDemandDetailList);
log.info("currentMonthPenalty" + currentMonthPenalty);
currentmonthTotalDue = currentmonthBill.add(currentMonthPenalty);
currentmonthTotalDue = currentmonthBill.add(currentMonthPenalty).add(currentmonthRoundOff);
log.info("currentmonthTotalDue" + currentmonthTotalDue);
if(currentMonthPenalty.equals(BigDecimal.ZERO)) {
List<MasterDetail> masterDetails = new ArrayList<>();
MasterDetail masterDetail = new MasterDetail("Penalty", "[?(@)]");
Expand All @@ -759,7 +769,13 @@ public int compare(Demand d1, Demand d2) {


//Tax headcode for WScharges,legacypenalty,legacyarea
List<String> taxHeadCodesToFilterWithoutPenalty = Arrays.asList("10102", "10201", "10101");
List<String> taxHeadCodesToFilterWithoutPenalty = Arrays.asList("10102", "10201", "10101","WS_Round_Off");

// Initialize the variable for the sum of taxAmount - collectedAmount specifically for WS_Round_Off
totalAreasRoundOff = remainingMonthDemandDetailList.stream()
.filter(dd -> "WS_Round_Off".equals(dd.getTaxHeadMasterCode())) // Filter specifically for WS_Round_Off
.map(dd -> dd.getTaxAmount().subtract(dd.getCollectionAmount())) // Calculate taxAmount - collectedAmount
.reduce(BigDecimal.ZERO, BigDecimal::add); // Sum all results

// Initialize the variable for the sum of taxAmount - collectedAmount for the filtered tax head codes
totalAreas = remainingMonthDemandDetailList.stream()
Expand Down Expand Up @@ -799,7 +815,7 @@ public int compare(Demand d1, Demand d2) {
if(remainingAdvance !=BigDecimal.ZERO && currentmonthBill !=BigDecimal.ZERO && advanceAdjusted.equals(BigDecimal.ZERO)) {
}

netdue = currentmonthBill.add(totalAreas).add(remainingAdvance);
netdue = currentmonthBill.add(totalAreas).add(remainingAdvance).add(currentmonthRoundOff);
netDueWithPenalty = currentmonthTotalDue.add(totalAreasWithPenalty).add(remainingAdvance);

//BigDecimal currentMonthBill
Expand All @@ -808,8 +824,10 @@ public int compare(Demand d1, Demand d2) {
.currentmonthBill(currentmonthBill)
.currentMonthPenalty(currentMonthPenalty)
.currentmonthTotalDue(currentmonthTotalDue)
.currentmonthRoundOff(currentmonthRoundOff)
.totalAreas(totalAreas)
.totalAreasWithPenalty(totalAreasWithPenalty)
.totalAreasRoundOff(totalAreasRoundOff)
.netdue(netdue)
.netDueWithPenalty(netDueWithPenalty)
.advanceAdjusted(advanceAdjusted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,15 @@ class NewConsumerBillState extends State<NewConsumerBill> {
houseHoldProvider.isfirstdemand)
getLabelText(
i18.common.CORE_ADVANCE_ADJUSTED,

double.parse(CommonProvider
.getAdvanceAdjustedAmount(
widget
.demandList)) == 0 ? "₹ ${houseHoldProvider.aggDemandItems?.remainingAdvance}" :
double.parse(CommonProvider
.getAdvanceAdjustedAmount(
widget
.demandList)) <=
.demandList)) <
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve readability of conditional logic.

Consider restructuring the conditional logic to enhance readability and maintainability.

double adjustedAmount = double.parse(CommonProvider.getAdvanceAdjustedAmount(widget.demandList));
String displayAmount;

if (adjustedAmount == 0) {
  displayAmount = "₹ ${houseHoldProvider.aggDemandItems?.remainingAdvance}";
} else if (adjustedAmount < 0) {
  displayAmount = "₹ $adjustedAmount";
} else {
  displayAmount = "- ₹$adjustedAmount";
}

getLabelText(i18.common.CORE_ADVANCE_ADJUSTED, displayAmount, context);

0
? "₹ ${double.parse(CommonProvider.getAdvanceAdjustedAmount(widget.demandList))}"
: '- ₹${double.parse(CommonProvider.getAdvanceAdjustedAmount(widget.demandList))}',
Expand Down
2 changes: 2 additions & 0 deletions frontend/mgramseva/lib/model/demand/demand_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ class AggragateDemandDetails {
double? currentMonthPenalty;
@JsonKey(name: "currentmonthTotalDue")
double? currentmonthTotalDue;
@JsonKey(name: "currentmonthRoundOff")
double? currentmonthRoundOff;
@JsonKey(name: "totalAreas")
double? totalAreas;
@JsonKey(name: "totalAreasWithPenalty")
Expand Down
3 changes: 3 additions & 0 deletions frontend/mgramseva/lib/model/demand/demand_list.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions frontend/micro-ui/web/.babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"presets": [
"@babel/preset-env","@babel/preset-react"
]
}
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-optional-chaining"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ var Digit = window.Digit || {};


function anonymizeHalfString(input) {
// Calculate the midpoint of the string
const midpoint = Math.ceil(input.length / 2);

// Replace the first 50% of the string with asterisks
const anonymized = "*".repeat(midpoint) + input.substring(midpoint);
// Initialize an empty string to store the anonymized output
let anonymized = "";
// Loop through each character in the input string
for (let i = 0; i < input.length; i++) {
// Check if the index (i) is even (0, 2, 4, ...)
if (i % 2 === 0) {
// Append the original character (keep it)
anonymized += input[i];
} else {
// Append an asterisk to mask the alternate character
anonymized += "*";
}
}

return anonymized;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,47 @@
}
}

.dropdown-user .dropbtn{
color: white;
font-size: 1rem;
margin: 10px;
background-color: #efefef00;
}
.dropdown-user {
position: relative; /* Make the dropdown relative to its container */
display: inline-block;
}

.dropdown-user-overlay {
position: absolute; /* Position the overlay absolutely relative to the dropdown */
top: 100%; /* Position the overlay below the button */
left: 0; /* Align the overlay to the left of the button */
background-color: #f1f1f1; /* Set background color */
min-width: 160px; /* Set minimum width */
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Add shadow */
z-index: 1; /* Set z-index to display on top of other elements */
display: none; /* Hide by default */
}

.dropdown-user-content {
padding: 0; /* Remove default padding from ul */
list-style: none; /* Remove default list style */
}

.dropdown-user-content li {
border-bottom: solid 1px !important;
border-color: black !important;
padding: 12px 12px; /* Add padding to list items */
}
.dropdown-user-link {
text-decoration: none !important; /* Remove underline from links inside list items */
}

.dropdown-user:hover .dropdown-user-overlay {
display: block; /* Show overlay on hover */
}


.RightMostTopBarOptions {
@apply flex;
.EventNotificationWrapper {
Expand All @@ -369,6 +410,9 @@
fill: theme(colors.white);
}
}
display: flex;
justify-content: center;
align-items: center;
}

@media (min-width: 640px) {
Expand Down Expand Up @@ -477,8 +521,24 @@
.hamburger-span {
display: none;
}
.city{
height: 48px !important;
width: 48px !important;
padding: 0px !important;
}

}

}

.hambuger-back-wrapper .city{
object-fit: scale-down !important;
border-radius: 5px !important;
padding: 1px 15px !important;
}



}

@screen dt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ const initRequestBody = (tenantId) => ({
],
},
});
const initRequestBodyWithOutTenent = (tenantId) => ({
MdmsCriteria: {
tenantId,
moduleDetails: [
{
moduleName: "common-masters",
masterDetails: [{ name: "Department" }, { name: "Designation" }, { name: "StateInfo" }, { name: "wfSlaConfig" }, { name: "uiHomePage" }],
},
{
moduleName: "DIGIT-UI",
masterDetails: [{ name: "ApiCachingSettings" }],
},
],
},
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the typo in the function name.

The function name initRequestBodyWithOutTenent contains a typo. It should be initRequestBodyWithoutTenant.

- const initRequestBodyWithOutTenent = (tenantId) => ({
+ const initRequestBodyWithoutTenant = (tenantId) => ({
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const initRequestBodyWithOutTenent = (tenantId) => ({
MdmsCriteria: {
tenantId,
moduleDetails: [
{
moduleName: "common-masters",
masterDetails: [{ name: "Department" }, { name: "Designation" }, { name: "StateInfo" }, { name: "wfSlaConfig" }, { name: "uiHomePage" }],
},
{
moduleName: "DIGIT-UI",
masterDetails: [{ name: "ApiCachingSettings" }],
},
],
},
});
const initRequestBodyWithoutTenant = (tenantId) => ({
MdmsCriteria: {
tenantId,
moduleDetails: [
{
moduleName: "common-masters",
masterDetails: [{ name: "Department" }, { name: "Designation" }, { name: "StateInfo" }, { name: "wfSlaConfig" }, { name: "uiHomePage" }],
},
{
moduleName: "DIGIT-UI",
masterDetails: [{ name: "ApiCachingSettings" }],
},
],
},
});


const getCriteria = (tenantId, moduleDetails) => {
return {
Expand Down Expand Up @@ -1478,6 +1493,14 @@ export const MdmsService = {
useCache: true,
params: { tenantId: stateCode },
}),
initWithOutTenent: (stateCode) =>
ServiceRequest({
serviceName: "mdmsInit",
url: Urls.MDMS,
data: initRequestBodyWithOutTenent(stateCode),
useCache: true,
params: { tenantId: stateCode },
}),
Comment on lines +1500 to +1507
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the typo in the method name.

The method name initWithOutTenent contains a typo. It should be initWithoutTenant.

- initWithOutTenent: (stateCode) =>
+ initWithoutTenant: (stateCode) =>
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
initWithOutTenent: (stateCode) =>
ServiceRequest({
serviceName: "mdmsInit",
url: Urls.MDMS,
data: initRequestBodyWithOutTenent(stateCode),
useCache: true,
params: { tenantId: stateCode },
}),
initWithoutTenant: (stateCode) =>
ServiceRequest({
serviceName: "mdmsInit",
url: Urls.MDMS,
data: initRequestBodyWithOutTenent(stateCode),
useCache: true,
params: { tenantId: stateCode },
}),

call: (tenantId, details) => {
return new Promise((resolve, reject) =>
debouncedCall(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ export const StoreService = {
return await Promise.all(allBoundries);
},
digitInitData: async (stateCode, enabledModules) => {
const { MdmsRes } = await MdmsService.init(stateCode);
const { MdmsRes } = await MdmsService.init(stateCode);
const stateInfo = MdmsRes["common-masters"]?.StateInfo?.[0] || {};
const uiHomePage = MdmsRes["common-masters"]?.uiHomePage?.[0] || {};

const localities = {};
const revenue_localities = {};
const initData = {
Expand All @@ -80,22 +81,12 @@ export const StoreService = {

initData.selectedLanguage =
Digit.SessionStorage.get("locale") || initData?.languages[2] ? initData?.languages[2]?.value : initData?.languages[1]?.value;

ApiCacheService.saveSetting(MdmsRes["DIGIT-UI"]?.ApiCachingSettings);

const moduleTenants = initData?.modules
.map((module) => module.tenants)
.flat()
.reduce((unique, ele) => (unique.find((item) => item.code === ele.code) ? unique : [...unique, ele]), []);
initData.tenants = MdmsRes?.tenant?.tenants
// ?.filter((x) => x.pgrEnabled)
initData.tenants = MdmsRes?.tenant?.tenants
.map((tenant) => ({
i18nKey: `TENANT_TENANTS_${tenant.code.replace(".", "_").toUpperCase()}`,
...tenant,
}));
// .filter((item) => !!moduleTenants.find((mt) => mt.code === item.code))
// .map((tenant) => ({ i18nKey: `TENANT_TENANTS_${tenant.code.replace(".", "_").toUpperCase()}`, ...tenant }));

await LocalizationService.getLocale({
modules: [`rainmaker-common`],
locale: initData.selectedLanguage,
Expand Down
Loading
Loading