mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix Bitcoin amount
This commit is contained in:
parent
6960ea19a9
commit
e8f118c204
@ -408,7 +408,7 @@ class StripePaymentDriver extends BasePaymentDriver
|
||||
'account' => $this->account(),
|
||||
'invitation' => $this->invitation,
|
||||
'invoiceNumber' => $invoiceNumber,
|
||||
'amount' => $amount,
|
||||
'amount' => $this->invoice()->getRequestedAmount(),
|
||||
'source' => $response,
|
||||
]);
|
||||
} else {
|
||||
|
@ -163,7 +163,7 @@
|
||||
@if ($invoice->isQuote())
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
@if ($showApprove)
|
||||
{!! Button::success(trans('texts.approve'))->asLinkTo(URL::to('/approve/' . $invitation->invitation_key))->large() !!}
|
||||
{!! Button::success(trans('texts.approve'))->withAttributes(['id' => 'approveButton', 'onclick' => 'onApproveClick()'])->large() !!}
|
||||
@endif
|
||||
@elseif ( ! $invoice->canBePaid())
|
||||
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
|
||||
@ -289,6 +289,11 @@
|
||||
$('#authorizationModal').modal('show');
|
||||
}
|
||||
|
||||
function onApproveClick() {
|
||||
$('#approveButton').prop('disabled', true);
|
||||
//location.href = "{{ url('/approve/' . $invitation->invitation_key) }}";
|
||||
}
|
||||
|
||||
function onDownloadClick() {
|
||||
try {
|
||||
var doc = generatePDF(invoice, invoice.invoice_design.javascript, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user