Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,5 @@ cython_debug/
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
# refer to https://docs.cursor.com/context/ignore-files
.cursorignore
.cursorindexingignore
.cursorindexingignore
V25.1/.DS_Store
28 changes: 28 additions & 0 deletions V25.1/Bill/BillIncrElec.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- BillIncrElec
-- 20250703

SUM(
CASE
WHEN NOT ISNULL(ft.FuelType,0) = '0'
AND (kWh1 * (ISNULL(RateE1, 0) + ISNULL(RateEFrac1,0)) + kWh2 * (ISNULL(RateEFrac2_1,0)+ISNULL(RateE2,0)+ISNULL(RateEFrac2_2,0))) < 0
THEN ISNULL(
Qty *
IR *
RR *
( NTGRkWh + @MEBens ) *
(
kWh1 *
(
ISNULL( RateE1, 0 ) +
ISNULL( RateEFrac1, 0 )
) +
kWh2 *
(
ISNULL( RateEFrac2_1, 0 ) +
ISNULL( RateE2, 0 ) +
ISNULL( RateEFrac2_2, 0 )
)
), 0
)
ELSE 0
END)
29 changes: 29 additions & 0 deletions V25.1/Bill/BillIncrGas.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-- BillIncrGas
-- 20250705

SUM(
CASE
WHEN NOT ISNULL(ft.FuelType,0) = '0'
AND (Thm1 * (ISNULL(RateG1, 0) + ISNULL(RateGFrac1,0)) + Thm2 * (ISNULL(RateGFrac2_1,0)+ISNULL(RateG2,0)+ISNULL(RateGFrac2_2,0))) < 0
THEN
ISNULL(
Qty *
IR *
RR *
( NTGRThm + @MEBens ) *
(
Thm1 *
(
ISNULL( RateG1, 0 ) +
ISNULL( RateGFrac1, 0 )
) +
Thm2 *
(
ISNULL( RateGFrac2_1, 0 ) +
ISNULL( RateG2, 0 ) +
ISNULL( RateGFrac2_2, 0 )
)
), 0
)
ELSE 0
END)
28 changes: 28 additions & 0 deletions V25.1/Bill/BillReducElec.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- BillReducElec
-- 20250703

SUM(
CASE
WHEN NOT ISNULL(ft.FuelType,0) = '0'
OR (kWh1 * (ISNULL(RateE1, 0) + ISNULL(RateEFrac1,0)) + kWh2 * (ISNULL(RateEFrac2_1,0)+ISNULL(RateE2,0)+ISNULL(RateEFrac2_2,0))) > 0
THEN ISNULL(
Qty *
IR *
RR *
( NTGRkWh + @MEBens ) *
(
kWh1 *
(
ISNULL( RateE1, 0 ) +
ISNULL( RateEFrac1, 0 )
) +
kWh2 *
(
ISNULL( RateEFrac2_1, 0 ) +
ISNULL( RateE2, 0 ) +
ISNULL( RateEFrac2_2, 0 )
)
), 0
)
ELSE 0
END)
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
-- BillReducGas 20250703
-- BillReducGas
-- 20250705

SUM(
CASE
WHEN NOT ISNULL(ft.FuelType,0) = '0' AND (Thm1 (ISNULL(RateG1, 0) + ISNULL(RateGFrac1,0)) + Thm2 (ISNULL(RateGFrac2_1,0)+ISNULL(RateG2,0)+ISNULL(RateGFrac2_2,0)))<0
WHEN NOT ISNULL(ft.FuelType,0) = '0'
OR (Thm1 (ISNULL(RateG1, 0) + ISNULL(RateGFrac1,0)) + Thm2 (ISNULL(RateGFrac2_1,0)+ISNULL(RateG2,0)+ISNULL(RateGFrac2_2,0))) > 0
THEN
ISNULL(
-Qty *
Qty *
IR *
RR *
( NTGRThm + @MEBens ) *
Expand Down