mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for tests
This commit is contained in:
parent
d091ea0e0f
commit
b432cb55ba
@ -164,7 +164,7 @@ class PaymentService extends BaseService
|
||||
|
||||
foreach ($payments as $payment) {
|
||||
if (Auth::user()->can('edit', $payment)) {
|
||||
$amount = ! empty($params['amount']) ? floatval($params['amount']) : null;
|
||||
$amount = ! empty($params['refund_amount']) ? floatval($params['refund_amount']) : null;
|
||||
if ($accountGateway = $payment->account_gateway) {
|
||||
$paymentDriver = $accountGateway->paymentDriver();
|
||||
if ($paymentDriver->refundPayment($payment, $amount)) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon" id="refundCurrencySymbol"></span>
|
||||
<input type="number" class="form-control" id="refundAmount" name="amount" step="0.01" min="0.01" placeholder="{{ trans('texts.amount') }}">
|
||||
<input type="number" class="form-control" id="refundAmount" name="refund_amount" step="0.01" min="0.01" placeholder="{{ trans('texts.amount') }}">
|
||||
</div>
|
||||
<div class="help-block">{{ trans('texts.refund_max') }} <span id="refundMax"></span></div>
|
||||
</div>
|
||||
|
@ -8,7 +8,7 @@ class_name: AcceptanceTester
|
||||
modules:
|
||||
enabled:
|
||||
- WebDriver:
|
||||
url: 'http://ninja.dev:8000/'
|
||||
url: 'http://ninja.dev/'
|
||||
window_size: 1024x768
|
||||
wait: 5
|
||||
browser: firefox
|
||||
|
Loading…
x
Reference in New Issue
Block a user