Approven von Beitragserstattungen
This commit is contained in:
@@ -46,9 +46,10 @@ class GlobalDataProvider {
|
||||
]);
|
||||
}
|
||||
|
||||
/** Die Typen für die Neuanlage durch Nutzer*innen. Reisekosten haben ein eigenes Formular. */
|
||||
public function getInvoiceTypes() : JsonResponse {
|
||||
$invoiceTypes = [];
|
||||
foreach (InvoiceType::orderBy('sort_order')->get() as $invoiceType) {
|
||||
foreach (InvoiceType::selectable() as $invoiceType) {
|
||||
if (
|
||||
$invoiceType->slug === InvoiceType::INVOICE_TYPE_TRAVELLING
|
||||
) {
|
||||
@@ -110,9 +111,15 @@ class GlobalDataProvider {
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Die Typen zum Umbuchen durch die Kassenwart*innen -- „Sonstige Kosten" ans Ende.
|
||||
*
|
||||
* Auch hier nur wählbare Typen: sonst ließe sich eine beliebige Abrechnung nachträglich zu einer
|
||||
* Beitragserstattung machen, ohne dass ein Erstattungsvorgang dahinterstünde.
|
||||
*/
|
||||
public function getAllInvoiceTypes() : JsonResponse {
|
||||
$invoiceTypes = [];
|
||||
foreach (InvoiceType::orderBy('sort_order')->get() as $invoiceType) {
|
||||
foreach (InvoiceType::selectable() as $invoiceType) {
|
||||
if (
|
||||
$invoiceType->slug === InvoiceType::INVOICE_TYPE_OTHER
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user