2 Commits
Author SHA1 Message Date
th.guenther b15573cda6 Overview of active payment methode 2026-08-05 19:12:57 +02:00
th.guenther 67c4e69f7b Overview of active payment methode 2026-08-05 19:12:49 +02:00
4 changed files with 25 additions and 6 deletions
@@ -1,11 +1,11 @@
<script setup>
import { computed, reactive, ref } from "vue";
import {computed, reactive, ref} from "vue";
import Modal from "../../../../Views/Components/Modal.vue";
import ParticipantData from "./ParticipantData.vue";
import MailCompose from "./MailCompose.vue";
import MailCompose from "./MailCompose.vue";
import {toast} from "vue3-toastify";
import {useAjax} from "../../../../../resources/js/components/ajaxHandler.js";
import {format, getDay, getMonth, getYear} from "date-fns";
import {format} from "date-fns";
import AmountInput from "../../../../Views/Components/AmountInput.vue";
import FullScreenModal from "../../../../Views/Components/FullScreenModal.vue";
import DialableTelephoneNumber from "../../../../Views/Components/DialableTelephoneNumber.vue";
@@ -344,6 +344,14 @@ function mailToGroup(groupKey) {
<span class="link" style="font-size:10pt;" @click="paymentComplete(participant)">Zahlung buchen</span> &nbsp;
<span class="link" style="font-size:10pt;" @click="openPartialPaymentDialog(participant)">Teilzahlung buchen</span>
</span>
<br/><br/>
<span :id="'participant-' + participant.identifier + '-paymentmethod'"
style="font-size:10pt;">
Zahlungsweise: <label
:id="'participant-' + participant.identifier + '-paymentmethod-name'">{{
participant.paymentMethod ?? '—'
}}</label>
</span>
</td>
<td class="pl-email">
@@ -28,6 +28,12 @@ function setValue(name, value) {
:modelValue="modelValue[option.name] ?? ''"
@update:modelValue="value => setValue(option.name, value)"
/>
<input
v-else-if="option.type === 'checkbox'"
type="checkbox"
:checked="modelValue[option.name] ?? false"
@change="event => setValue(option.name, event.target.checked)"
/>
<input
v-else
type="text"
@@ -50,10 +50,15 @@ class EventPaymentModuleRegistryTest extends TestCase
$this->assertTrue($module->isConfigurationComplete(['iban' => 'DE123', 'account_owner' => 'Kasse']));
}
public function test_existing_modules_have_no_participant_options(): void
public function test_participant_options_per_module(): void
{
// Überweisung: keine payer-seitigen Eingaben.
$this->assertSame([], (new AccountTransferPaymentModule())->getParticipantOptions());
$this->assertSame([], (new UndefinedPaymentModule())->getParticipantOptions());
// Sonstiges: exemplarische Teilnehmer-Eingaben (Betrag + Passend-Checkbox).
$undefined = (new UndefinedPaymentModule())->getParticipantOptions();
$this->assertSame(['amount_brought', 'has_exact_amount'], array_column($undefined, 'name'));
$this->assertSame('checkbox', $undefined[1]['type']);
}
public function test_participant_option_helpers(): void
+1 -1
View File
@@ -1 +1 @@
4.6.0
4.6.1