Adressdaten werden bei Bestellung nicht direkt übernommen
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<script lang="ts">
|
||||
import {
|
||||
Reader,
|
||||
EnvelopeClosed,
|
||||
Cube,
|
||||
Person,
|
||||
} from "radix-svelte-icons";
|
||||
import { Tabs, Tab, TabList, TabPanel } from "../../components/Tabs/index.js";
|
||||
|
||||
@@ -439,6 +439,7 @@
|
||||
const merged_versand_plz = versand_plz || plz;
|
||||
const merged_versand_ort = versand_ort || ort;
|
||||
const merged_versand_zusatzzeile = versand_zusatzzeile || zusatzzeile;
|
||||
|
||||
|
||||
if (rechnung) {
|
||||
const result = await api.rechnung._id.PATCH.fetch({
|
||||
@@ -1247,7 +1248,11 @@ sm:grid-cols-[min-content_min-content_min-content] sm:justify-self-end sm:mt-8"
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Overlay bind:hidden={loginOverlayHidden}>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<Overlay bind:hidden={loginOverlayHidden}>
|
||||
<div class="bg-white w-full max-w-screen-sm py-8">
|
||||
<EmbeddedAuthFlowModule onLogin={loginAction} email={email} route="signup" title={
|
||||
{
|
||||
@@ -1260,8 +1265,6 @@ sm:grid-cols-[min-content_min-content_min-content] sm:justify-self-end sm:mt-8"
|
||||
}}></EmbeddedAuthFlowModule>
|
||||
</div>
|
||||
</Overlay>
|
||||
|
||||
</form>
|
||||
|
||||
<NotificationWrapper></NotificationWrapper>
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ export const PUT = defineApiRoute({
|
||||
if (!adapter) {
|
||||
throw new APIError({
|
||||
code: "BAD_REQUEST",
|
||||
message: "Ungültige Ausweis UID"
|
||||
message: "Ungültige Ausweis ID"
|
||||
})
|
||||
}
|
||||
|
||||
@@ -214,10 +214,6 @@ export const PUT = defineApiRoute({
|
||||
}
|
||||
})
|
||||
|
||||
if (bezahlmethode === Enums.Bezahlmethoden.rechnung) {
|
||||
return { id }
|
||||
}
|
||||
|
||||
if (user.rolle !== Enums.BenutzerRolle.ADMIN) {
|
||||
// Wir aktualisieren auch die Rechnungsdaten des Benutzers
|
||||
await prisma.benutzer.update({
|
||||
@@ -233,6 +229,10 @@ export const PUT = defineApiRoute({
|
||||
})
|
||||
}
|
||||
|
||||
if (bezahlmethode === Enums.Bezahlmethoden.rechnung) {
|
||||
return { id }
|
||||
}
|
||||
|
||||
// Wir erstellen eine Mollie Payment Referenz.
|
||||
const payment = await mollieClient.payments.create({
|
||||
amount: {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import UserLayout from "#layouts/DashboardLayout.astro";
|
||||
import { getCurrentUser } from "#lib/server/user";
|
||||
import DashboardEinstellungenModule from "#modules/Dashboard/DashboardEinstellungenModule.svelte";
|
||||
import { validateAccessTokenServer } from "#server/lib/validateAccessToken";
|
||||
|
||||
const user = await getCurrentUser(Astro)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user