tenant, taxLiable: $request->boolean('tax_liable'), vatRate: (int)$request->input('vat_rate', 0), exemptionReason: TaxExemptionReason::where('slug', $request->input('tax_exemption_reason'))->first(), exemptionNote: $request->input('tax_exemption_note'), vatPricingMode: VatPricingMode::tryFrom((string) $request->input('vat_pricing_mode', 'inclusive')) ?? VatPricingMode::Inclusive, taxNumber: $request->input('tax_number'), vatId: $request->input('vat_id'), // invoice_prefix wird hier bewusst nicht durchgereicht -- der Nummernkreis ist nur in der // Mandanten-Verwaltung änderbar. )); $response = $action->execute(); return response()->json([ 'status' => $response->success ? 'success' : 'error', 'message' => $response->message, ]); } }