Skip to content

Commit

Permalink
Merge pull request #628 from OpenOlitor/fix/OO_reportID_not_in_Seed
Browse files Browse the repository at this point in the history
OO adding the report Id to be consider in the seed data
  • Loading branch information
mcmpp authored May 25, 2022
2 parents 672f764 + 978235e commit afb6b7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ openolitor {
ch.openolitor.stammdaten.models.AuslieferungId,
ch.openolitor.buchhaltung.models.RechnungId,
ch.openolitor.stammdaten.models.SammelbestellungId,
ch.openolitor.buchhaltung.models.RechnungsPositionId]
ch.openolitor.buchhaltung.models.RechnungsPositionId,
ch.openolitor.reports.models.ReportId]

mappings {
ch.openolitor.core.models {
Expand All @@ -370,6 +371,9 @@ openolitor {
RechnungId = 200000
RechnungsPositionId = 400000
}
ch.openolitor.reports.models {
ReportId = 2000
}
}
}

Expand Down Expand Up @@ -403,7 +407,8 @@ openolitor {
ch.openolitor.stammdaten.models.SammelbestellungId,
ch.openolitor.buchhaltung.models.RechnungId,
ch.openolitor.buchhaltung.models.RechnungsPositionId,
ch.openolitor.mailtemplates.model.MailTemplateId]
ch.openolitor.mailtemplates.model.MailTemplateId,
ch.openolitor.reports.models.ReportId]

mappings {
ch.openolitor.core.models {
Expand All @@ -429,6 +434,9 @@ openolitor {
RechnungId = 200000
RechnungsPositionId = 400000
}
ch.openolitor.reports.models {
ReportId = 2000
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import scala.reflect._
import ch.openolitor.core.SystemConfig
import ch.openolitor.buchhaltung.BuchhaltungDBMappings
import ch.openolitor.reports.ReportsDBMappings
import ch.openolitor.reports.models._
import ch.openolitor.arbeitseinsatz.ArbeitseinsatzDBMappings
import ch.openolitor.arbeitseinsatz.models._
import ch.openolitor.core.db.evolution.scripts.Scripts
Expand Down Expand Up @@ -96,6 +97,7 @@ class Evolution(sysConfig: SystemConfig, scripts: Seq[Script]) extends CoreDBMap
adjustSeed[ProduktProduzent, ProduktProduzentId](produktProduzentMapping),
adjustSeed[Produktekategorie, ProduktekategorieId](produktekategorieMapping),
adjustSeed[Projekt, ProjektId](projektMapping),
adjustSeed[Report, ReportId](reportMapping),
adjustSeed[Tour, TourId](tourMapping),
adjustSeed[Lieferplanung, LieferplanungId](lieferplanungMapping),
adjustSeed[Lieferposition, LieferpositionId](lieferpositionMapping),
Expand Down

0 comments on commit afb6b7b

Please sign in to comment.