Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OO#157 adding kunde konto daten information in rechnung json extract #731

Conversation

mcmpp
Copy link
Member

@mcmpp mcmpp commented Apr 17, 2024

No description provided.

@mcmpp mcmpp requested a review from AlwinEgger April 17, 2024 15:46
@@ -63,10 +64,11 @@ trait RechnungReportData extends AsyncConnectionPoolContextAware with Buchhaltun
case Some(error) if error.startsWith("Error: ") => {
Left(ValidationError[RechnungId](rechnungId, error))
}
case Some(_) => Right(copyTo[RechnungDetail, RechnungDetailReport](rechnung, "qrCode" -> qrCode, "projekt" -> projektReport, "kontoDaten" -> kontoDaten))
case Some(_) =>
val maybeKundeKontoDaten: Option[KontoDaten] = Await.result(stammdatenReadRepository.getKontoDatenKunde(rechnung.kunde.id), d)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure this works. But it might be an option to add the KontoDaten to the RechnungDetail and fetch it with the Query?

Copy link

Code Coverage

Package Line Rate Branch Rate
ch.openolitor.arbeitseinsatz 49% 29%
ch.openolitor.arbeitseinsatz.batch 100% 100%
ch.openolitor.arbeitseinsatz.batch.calculations 39% 100%
ch.openolitor.arbeitseinsatz.eventsourcing 89% 100%
ch.openolitor.arbeitseinsatz.models 100% 100%
ch.openolitor.arbeitseinsatz.reporting 38% 67%
ch.openolitor.arbeitseinsatz.repositories 20% 0%
ch.openolitor.buchhaltung 39% 17%
ch.openolitor.buchhaltung.eventsourcing 98% 100%
ch.openolitor.buchhaltung.models 83% 100%
ch.openolitor.buchhaltung.rechnungsexport.iso20022 95% 56%
ch.openolitor.buchhaltung.reporting 0% 0%
ch.openolitor.buchhaltung.repositories 14% 33%
ch.openolitor.buchhaltung.zahlungsimport 71% 100%
ch.openolitor.buchhaltung.zahlungsimport.esr 86% 65%
ch.openolitor.buchhaltung.zahlungsimport.iso20022 49% 25%
ch.openolitor.core 45% 32%
ch.openolitor.core.batch 40% 22%
ch.openolitor.core.data 0% 0%
ch.openolitor.core.data.parsers 0% 0%
ch.openolitor.core.db 71% 40%
ch.openolitor.core.db.evolution 86% 76%
ch.openolitor.core.db.evolution.scripts 96% 75%
ch.openolitor.core.db.evolution.scripts.recalculations 59% 0%
ch.openolitor.core.db.evolution.scripts.v1 90% 33%
ch.openolitor.core.db.evolution.scripts.v2 91% 50%
ch.openolitor.core.domain 67% 40%
ch.openolitor.core.eventsourcing 56% 7%
ch.openolitor.core.eventsourcing.events 42% 26%
ch.openolitor.core.filestore 22% 16%
ch.openolitor.core.filestore.batch 100% 100%
ch.openolitor.core.filestore.batch.housekeeping 37% 0%
ch.openolitor.core.jobs 40% 24%
ch.openolitor.core.mailservice 20% 6%
ch.openolitor.core.models 0% 0%
ch.openolitor.core.proxy 0% 0%
ch.openolitor.core.reporting 49% 41%
ch.openolitor.core.reporting.odf 57% 56%
ch.openolitor.core.reporting.pdf 85% 60%
ch.openolitor.core.repositories 67% 63%
ch.openolitor.core.security 40% 39%
ch.openolitor.core.system 0% 0%
ch.openolitor.core.ws 65% 30%
ch.openolitor.helloworld 100% 100%
ch.openolitor.kundenportal 37% 0%
ch.openolitor.kundenportal.repositories 27% 17%
ch.openolitor.mailtemplates 30% 38%
ch.openolitor.mailtemplates.engine 98% 100%
ch.openolitor.mailtemplates.eventsourcing 100% 100%
ch.openolitor.mailtemplates.model 0% 0%
ch.openolitor.mailtemplates.repositories 6% 100%
ch.openolitor.reports 22% 22%
ch.openolitor.reports.eventsourcing 100% 100%
ch.openolitor.reports.repositories 0% 0%
ch.openolitor.stammdaten 53% 24%
ch.openolitor.stammdaten.batch 100% 100%
ch.openolitor.stammdaten.batch.calculations 30% 100%
ch.openolitor.stammdaten.eventsourcing 70% 0%
ch.openolitor.stammdaten.models 90% 50%
ch.openolitor.stammdaten.reporting 31% 33%
ch.openolitor.stammdaten.repositories 36% 17%
ch.openolitor.util 20% 24%
ch.openolitor.util.jsonpath 99% 98%
ch.openolitor.util.jsonpath.functions 83% 79%
ch.openolitor.util.parsing 82% 54%
ch.openolitor.util.querybuilder 5% 10%
org.odftoolkit.simple 64% 43%
org.odftoolkit.simple.draw 69% 62%
Summary 50% (23241 / 46696) 30% (773 / 2554)

@mcmpp mcmpp merged commit 4e21b0f into prod Apr 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants