Add public building project setting

This commit is contained in:
2026-07-31 17:41:30 +02:00
parent 43a3bb0b69
commit 44b6fde940
29 changed files with 2057 additions and 54 deletions
+5
View File
@@ -1057,6 +1057,7 @@ describe("project command service", () => {
externalProjectNumber: null,
buildingOwner: null,
description: null,
isPublicBuilding: true,
singlePhaseVoltageV: 240,
threePhaseVoltageV: 415,
enabledDistributionBoardSupplyTypes: [
@@ -1073,6 +1074,7 @@ describe("project command service", () => {
assert.deepEqual(
context.db
.select({
isPublicBuilding: projects.isPublicBuilding,
singlePhaseVoltageV: projects.singlePhaseVoltageV,
threePhaseVoltageV: projects.threePhaseVoltageV,
})
@@ -1080,6 +1082,7 @@ describe("project command service", () => {
.where(eq(projects.id, "project-1"))
.get(),
{
isPublicBuilding: true,
singlePhaseVoltageV: 240,
threePhaseVoltageV: 415,
}
@@ -1093,6 +1096,7 @@ describe("project command service", () => {
assert.deepEqual(
context.db
.select({
isPublicBuilding: projects.isPublicBuilding,
singlePhaseVoltageV: projects.singlePhaseVoltageV,
threePhaseVoltageV: projects.threePhaseVoltageV,
})
@@ -1100,6 +1104,7 @@ describe("project command service", () => {
.where(eq(projects.id, "project-1"))
.get(),
{
isPublicBuilding: false,
singlePhaseVoltageV: 230,
threePhaseVoltageV: 400,
}