From 3c4e77958578d7855e504be699e0f76e4a82610e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 25 Jan 2021 10:07:12 +0100 Subject: [PATCH 1/2] add mount to requiredfields --- app/Http/Controllers/ClientPortal/InvoiceController.php | 3 ++- app/Http/Livewire/RequiredClientInfo.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ClientPortal/InvoiceController.php b/app/Http/Controllers/ClientPortal/InvoiceController.php index b7ced5d34948..5de70e21a1f7 100644 --- a/app/Http/Controllers/ClientPortal/InvoiceController.php +++ b/app/Http/Controllers/ClientPortal/InvoiceController.php @@ -123,7 +123,8 @@ class InvoiceController extends Controller //format totals $formatted_total = Number::formatMoney($total, auth()->user()->client); - $payment_methods = auth()->user()->client->service()->getPaymentMethods($total); +// $payment_methods = auth()->user()->client->service()->getPaymentMethods($total); + $payment_methods = auth()->user()->client->getPaymentMethods($total); $data = [ 'settings' => auth()->user()->client->getMergedSettings(), diff --git a/app/Http/Livewire/RequiredClientInfo.php b/app/Http/Livewire/RequiredClientInfo.php index e57ed1229745..b0296b0b9da1 100644 --- a/app/Http/Livewire/RequiredClientInfo.php +++ b/app/Http/Livewire/RequiredClientInfo.php @@ -65,6 +65,8 @@ class RequiredClientInfo extends Component public $show_form = false; + public function mount() {} + public function handleSubmit(array $data): bool { $rules = []; From 324fcc287cb8e804f5a5acd7b11db1de9caf01d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 25 Jan 2021 10:07:42 +0100 Subject: [PATCH 2/2] wip --- app/Http/Controllers/ClientPortal/InvoiceController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/ClientPortal/InvoiceController.php b/app/Http/Controllers/ClientPortal/InvoiceController.php index 5de70e21a1f7..b7ced5d34948 100644 --- a/app/Http/Controllers/ClientPortal/InvoiceController.php +++ b/app/Http/Controllers/ClientPortal/InvoiceController.php @@ -123,8 +123,7 @@ class InvoiceController extends Controller //format totals $formatted_total = Number::formatMoney($total, auth()->user()->client); -// $payment_methods = auth()->user()->client->service()->getPaymentMethods($total); - $payment_methods = auth()->user()->client->getPaymentMethods($total); + $payment_methods = auth()->user()->client->service()->getPaymentMethods($total); $data = [ 'settings' => auth()->user()->client->getMergedSettings(),