Direct payments for invoices
Events can be moved to archive and moved back Fixed validation
This commit is contained in:
@@ -6,6 +6,7 @@ import {useAjax} from "../../../../../../resources/js/components/ajaxHandler.js"
|
||||
import TextResource from "../../../../../Views/Components/TextResource.vue";
|
||||
import {invoiceCheckContactName} from "../../../../../../resources/js/components/InvoiceUploadChecks.js";
|
||||
import {toast} from "vue3-toastify";
|
||||
import ErrorText from "../../../../../Views/Components/ErrorText.vue";
|
||||
|
||||
const { request } = useAjax();
|
||||
|
||||
@@ -39,7 +40,7 @@ const success = ref(false)
|
||||
const decision = ref('')
|
||||
const errorMsg = ref('')
|
||||
const confirmation = ref(null)
|
||||
|
||||
const receiptError = ref('')
|
||||
|
||||
async function sendData() {
|
||||
if (!userName.value) return
|
||||
@@ -75,6 +76,8 @@ async function sendData() {
|
||||
|
||||
if (response.status === 'success') {
|
||||
window.location.href = '/';
|
||||
} else {
|
||||
receiptError.value = response.message;
|
||||
}
|
||||
} catch (err) {
|
||||
toast.error(result.message);
|
||||
@@ -87,7 +90,7 @@ async function sendData() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Modal :show="finalStep" title='Bitte gib deine Daten ein' @close="emit('close')">
|
||||
<Modal :show="finalStep" title='Bitte gib deine Daten ein' @close="emit('close')" width="600px">
|
||||
<label>
|
||||
<strong>Dein Name Name (kein Pfadiname):</strong>
|
||||
</label><br />
|
||||
@@ -143,7 +146,7 @@ async function sendData() {
|
||||
<strong>IBAN:</strong>
|
||||
</label><br />
|
||||
<IbanInput id="account_iban" name="account_iban" v-model="userIban" style="font-size: 14pt; width: 550px;" /><br /><br />
|
||||
|
||||
<ErrorText :message="receiptError" />
|
||||
<span v-if="userAccountOwner != '' && userIban && userIban.length === 27"><br />
|
||||
<input type="radio" name="confirmation_radio" value="payment" id="confirmation_radio_payment" v-model="confirmation">
|
||||
<TextResource belongsTo="confirmation_radio_payment" textName="CONFIRMATION_PAYMENT" /><br /><br />
|
||||
|
||||
Reference in New Issue
Block a user