Merge pull request #4105 from beganovich/v2-fix-amount-index-when-paying

Fix bug with passing correct $amount when paying for invoices
This commit is contained in:
David Bomba 2020-09-26 06:36:55 +10:00 committed by GitHub
commit 870403eb0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,11 @@
<!-- App\Utils\Number::formatMoney($invoice->amount, $invoice->client) -->
<!-- Disabled input field don't send it's value with request. -->
@if(!$settings->client_portal_allow_under_payment && !$settings->client_portal_allow_over_payment)
<span class="mt-1 text-sm text-gray-800">{{ App\Utils\Number::formatMoney($invoice->amount, $invoice->client) }}</span>
<input
name="payable_invoices[{{$key}}][amount]"
value="{{ $invoice->partial > 0 ? $invoice->partial : $invoice->balance }}"
class="mt-1 text-sm text-gray-800"
readonly />
@else
<div class="flex items-center">
<input