Compare commits
2
Commits
7f8417e915
...
b15573cda6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b15573cda6 | ||
|
|
67c4e69f7b |
@@ -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>
|
||||
<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
|
||||
|
||||
Reference in New Issue
Block a user