@widergy/utilitygo-smart-bill-mobile 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [3.4.0](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/compare/v3.3.0...v3.4.0) (2025-11-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * changes ([2669d6f](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/commit/2669d6f84abba0ccbf5aadc27114f8847ed44a7a))
7
+
8
+
9
+ ### Features
10
+
11
+ * [EVEP-229] last prod changes ([#53](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/issues/53)) ([6327d47](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/commit/6327d4720afaade013546cde458f4094fec2d9b6))
12
+
1
13
  # [3.3.0](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/compare/v3.2.0...v3.3.0) (2025-11-05)
2
14
 
3
15
 
package/README.md CHANGED
@@ -1,3 +1,2 @@
1
1
  # UtilityGO-Smart-Bill
2
2
 
3
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/utilitygo-smart-bill-mobile",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "UtilityGO SmartBill Mobile",
5
5
  "license": "MIT",
6
6
  "main": "src/lib/index.js",
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
2
2
  import { View, FlatList } from 'react-native';
3
3
  import { Modal, SeparatorBar } from '@widergy/mobile-ui';
4
4
  import { bool } from 'prop-types';
5
+ import dayjs from 'dayjs';
5
6
 
6
7
  import { billDataTypes } from '../../types/billDataTypes';
7
8
  import { titleMapper } from '../../utils/billCalculation';
@@ -65,7 +66,7 @@ const BillCalculation = ({ bill, context, temporalyDisabled }) => {
65
66
  ) : (
66
67
  <Label semibold h4 primary style={styles.headerTitle}>
67
68
  {temporalyDisabled
68
- ? `${periodicity} ${periodNumber} `
69
+ ? `${periodicity} ${dayjs(currentPeriod.settlements?.end_date).tz().format('MM/YYYY')}`
69
70
  : `${texts.mainBillData.settlement} ${currentSettlement} ${texts.mainBillData.ofPreposition} ${totalSettlements} - ${periodicity} ${periodNumber} `}
70
71
  </Label>
71
72
  )}
@@ -32,7 +32,7 @@ const BillSummary = ({ bill, temporalyDisabled }) => {
32
32
  {!temporalyDisabled && <PercentageComparison bill={billToUse} />}
33
33
  {showPowerConsumptionGraphic(billToUse) && <PowerConsumptionGraphic bill={billToUse} />}
34
34
  <BillRate bill={billToUse} />
35
- {showBillSummaryBanner(billToUse) && (
35
+ {showBillSummaryBanner(billToUse) && !temporalyDisabled && (
36
36
  <Banner image={ConsumptionDetailBanner} url={consumptionDetailLink} style={styles.banner} />
37
37
  )}
38
38
  </View>
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { getIn } from 'seamless-immutable';
3
3
  import moment from 'moment';
4
+ import dayjs from 'dayjs';
4
5
 
5
6
  import Magnitude from '../../../Magnitude';
6
7
  import { ENERGY_TYPES, POWER_TYPES } from '../../../../constants/consumptions';
@@ -77,12 +78,15 @@ export const getHeaderField = (context, id, totalSettlementsIsOne) => {
77
78
  }
78
79
  };
79
80
 
80
- export const getPeriodField = (context, period, averageTemperature, options = {}, id) => {
81
+ export const getPeriodField = (context, period, averageTemperature, options = {}, id, temporalyDisabled) => {
81
82
  const { config, Label } = context;
82
83
  const { daysUnity, temperatureUnity } = config.texts.consumptionComparison;
83
84
  const { primary, semibold, current } = options;
84
85
  const { noData } = config.texts.commons;
85
- const formattedPeriod = period?.number && period.year && `${period.number}/${period.year}`;
86
+ const formattedPeriod =
87
+ period?.number && period.year && temporalyDisabled
88
+ ? dayjs(period.settlements?.end_date).tz().format('MM/YYYY')
89
+ : `${period.number}/${period.year}`;
86
90
 
87
91
  switch (id) {
88
92
  case COMPARISON_ROWS_IDS.period:
@@ -251,7 +255,7 @@ export const getComparisonRow = (
251
255
  semibold: true
252
256
  },
253
257
  periodId,
254
- totalSettlementsIsOne
258
+ temporalyDisabled
255
259
  ),
256
260
  show: true
257
261
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { View } from 'react-native';
3
3
  import moment from 'moment';
4
4
  import { bool } from 'prop-types';
5
+ import dayjs from 'dayjs';
5
6
 
6
7
  import { billDataTypes } from '../../../../types/billDataTypes';
7
8
  import { ENERGY_TYPES } from '../../../../constants/consumptions';
@@ -46,10 +47,12 @@ const ConsumptionData = ({ bill, temporalyDisabled }) => {
46
47
  {!powerConsumptionData && (
47
48
  <View style={styles.detailsContainer}>
48
49
  <Label small semibold style={styles.totalConsumptionAndDays} useMarkdown={false}>
49
- {`${periodicity === PERIODICITY.BIMONTHLY ? bimester : '-'} ${number}/${moment(
50
- year,
51
- 'YYYY'
52
- ).format('YY')}:`}
50
+ {temporalyDisabled
51
+ ? `${periodicity === PERIODICITY.BIMONTHLY ? bimester : '-'} ${dayjs(currentPeriod.settlements?.end_date).tz().format('MM/YY')}:`
52
+ : `${periodicity === PERIODICITY.BIMONTHLY ? bimester : '-'} ${number}/${moment(
53
+ year,
54
+ 'YYYY'
55
+ ).format('YY')}:`}
53
56
  </Label>
54
57
 
55
58
  <Label h4 semibold useMarkdown={false}>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { any, bool } from 'prop-types';
3
3
  import { View } from 'react-native';
4
4
  import { UTTooltip } from '@widergy/mobile-ui';
5
+ import dayjs from 'dayjs';
5
6
 
6
7
  import { PERIODICITY } from '../../constants/periodicities';
7
8
  import { Label } from '../Base';
@@ -62,7 +63,9 @@ const Period = ({
62
63
  <View style={includeQuestionIcon && ownStyles.textWithIcon}>
63
64
  <View>
64
65
  <Label h4 primary bold={!billSummaryStep} semibold={billSummaryStep} center>
65
- {`${year} - ${periodicity === PERIODICITY.BIMONTHLY ? bimester : '-'} ${number}`}
66
+ {temporalyDisabled
67
+ ? dayjs(period.settlements?.end_date).tz().format('MM/YYYY')
68
+ : `${year} - ${periodicity === PERIODICITY.BIMONTHLY ? bimester : '-'} ${number}`}
66
69
  </Label>
67
70
  {!temporalyDisabled && (
68
71
  <Label h4 primary bold={!billSummaryStep} semibold={billSummaryStep} center>