From 96a3599b7ea603072f66946641c325afc3475fb2 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 2 Jul 2024 16:13:52 +1000 Subject: [PATCH] improvements for validation of over/under payments --- app/Livewire/InvoicePay.php | 3 --- .../components/livewire/under-over-payments.blade.php | 9 ++++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Livewire/InvoicePay.php b/app/Livewire/InvoicePay.php index 4d0539bddc59..5bcb8ded0f61 100644 --- a/app/Livewire/InvoicePay.php +++ b/app/Livewire/InvoicePay.php @@ -43,8 +43,6 @@ class InvoicePay extends Component public $required_fields = false; - public $ready = true; - public array $context = []; #[On('update.context')] @@ -122,7 +120,6 @@ class InvoicePay extends Component // if($this->ready) - nlog("computed"); return ProcessPayment::class; } diff --git a/resources/views/portal/ninja2020/components/livewire/under-over-payments.blade.php b/resources/views/portal/ninja2020/components/livewire/under-over-payments.blade.php index 6001075a453e..45e9019adaa8 100644 --- a/resources/views/portal/ninja2020/components/livewire/under-over-payments.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/under-over-payments.blade.php @@ -1,4 +1,4 @@ -
+
{{ ctrans('texts.payment_amount') }} @@ -17,6 +17,10 @@
+ + @if($settings->client_portal_allow_under_payment) {{ ctrans('texts.minimum_payment') }}: {{ $settings->client_portal_under_payment_minimum }} @endif @@ -25,7 +29,7 @@
-
\ No newline at end of file