mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
- Show currency on the invoices/payment page
- Disable form submitting with enter
This commit is contained in:
parent
9c581f4b4c
commit
9b9c9434db
@ -8,7 +8,7 @@
|
|||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
@section('body')
|
@section('body')
|
||||||
<form action="{{ route('client.payments.process') }}" method="post" id="payment-form">
|
<form action="{{ route('client.payments.process') }}" method="post" id="payment-form" onkeypress="return event.keyCode != 13;">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="company_gateway_id" id="company_gateway_id">
|
<input type="hidden" name="company_gateway_id" id="company_gateway_id">
|
||||||
<input type="hidden" name="payment_method_id" id="payment_method_id">
|
<input type="hidden" name="payment_method_id" id="payment_method_id">
|
||||||
@ -118,19 +118,26 @@
|
|||||||
<!-- App\Utils\Number::formatMoney($invoice->amount, $invoice->client) -->
|
<!-- App\Utils\Number::formatMoney($invoice->amount, $invoice->client) -->
|
||||||
<!-- Disabled input field don't send it's value with request. -->
|
<!-- Disabled input field don't send it's value with request. -->
|
||||||
@if(!$settings->client_portal_allow_under_payment && !$settings->client_portal_allow_over_payment)
|
@if(!$settings->client_portal_allow_under_payment && !$settings->client_portal_allow_over_payment)
|
||||||
<input
|
<label>
|
||||||
name="payable_invoices[{{$key}}][amount]"
|
{{ $invoice->client->currency()->code }} ({{ $invoice->client->currency()->symbol }})
|
||||||
value="{{ $invoice->partial > 0 ? $invoice->partial : $invoice->balance }}"
|
|
||||||
class="mt-1 text-sm text-gray-800"
|
<input
|
||||||
readonly />
|
name="payable_invoices[{{$key}}][amount]"
|
||||||
|
value="{{ $invoice->partial > 0 ? $invoice->partial : $invoice->balance }}"
|
||||||
|
class="mt-1 text-sm text-gray-800"
|
||||||
|
readonly />
|
||||||
|
</label>
|
||||||
@else
|
@else
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<input
|
<label>
|
||||||
type="text"
|
|
||||||
class="input mt-0 mr-4 relative"
|
|
||||||
name="payable_invoices[{{$key}}][amount]"
|
|
||||||
value="{{ $invoice->partial > 0 ? $invoice->partial : $invoice->balance }}"/>
|
|
||||||
<span class="mt-2">{{ $invoice->client->currency()->code }} ({{ $invoice->client->currency()->symbol }})</span>
|
<span class="mt-2">{{ $invoice->client->currency()->code }} ({{ $invoice->client->currency()->symbol }})</span>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="input mt-0 mr-4 relative"
|
||||||
|
name="payable_invoices[{{$key}}][amount]"
|
||||||
|
value="{{ $invoice->partial > 0 ? $invoice->partial : $invoice->balance }}"/>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user