Skip to content

Commit

Permalink
Merge branch 'release-0.2.0' into add-email-configs-for-test-0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops authored Dec 18, 2024
2 parents 1c6f3f0 + 37360a9 commit ecdd73d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/lcfs/web/api/final_supply_equipment/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async def get_fse_list(self, report_id: int) -> List[FinalSupplyEquipment]:
joinedload(FinalSupplyEquipment.level_of_equipment),
)
.where(FinalSupplyEquipment.compliance_report_id == report_id)
.order_by(FinalSupplyEquipment.final_supply_equipment_id)
.order_by(FinalSupplyEquipment.create_date.asc())
)
return result.unique().scalars().all()

Expand Down Expand Up @@ -232,7 +232,7 @@ async def get_fse_paginated(
result = await self.db.execute(
query.offset(offset)
.limit(limit)
.order_by(FinalSupplyEquipment.create_date.desc())
.order_by(FinalSupplyEquipment.create_date.asc())
)
final_supply_equipments = result.unique().scalars().all()
return final_supply_equipments, total_count
Expand Down Expand Up @@ -356,7 +356,7 @@ async def increment_seq_by_org_and_postal_code(
sequence_number = 1

return sequence_number

@repo_handler
async def check_uniques_of_fse_row(self, row: FinalSupplyEquipmentCreateSchema) -> bool:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import { useEffect, useMemo, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useLocation, useParams, useNavigate } from 'react-router-dom'
import { v4 as uuid } from 'uuid'
import { numberFormatter } from '@/utils/formatters.js'

export const FinalSupplyEquipmentSummary = ({ data }) => {
const [alertMessage, setAlertMessage] = useState('')
const [alertSeverity, setAlertSeverity] = useState('info')
const [gridKey, setGridKey] = useState(`final-supply-equipments-grid`)
const [gridKey, setGridKey] = useState('final-supply-equipments-grid')
const { complianceReportId, compliancePeriod } = useParams()

const gridRef = useRef()
Expand Down Expand Up @@ -72,8 +73,7 @@ export const FinalSupplyEquipmentSummary = ({ data }) => {
'finalSupplyEquipment:finalSupplyEquipmentColLabels.kwhUsage'
),
field: 'kwhUsage',
valueFormatter: (params) =>
params.value ? params.value.toFixed(2) : '0.00'
valueFormatter: numberFormatter
},
{
headerName: t(
Expand Down

0 comments on commit ecdd73d

Please sign in to comment.