mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Fix for partial refund
This commit is contained in:
parent
b408d92879
commit
b327a20f10
@ -232,9 +232,9 @@ class PaymentController extends BaseController
|
|||||||
public function bulk()
|
public function bulk()
|
||||||
{
|
{
|
||||||
$action = Input::get('action');
|
$action = Input::get('action');
|
||||||
$amount = Input::get('amount');
|
$amount = Input::get('refund_amount');
|
||||||
$ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids');
|
$ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids');
|
||||||
$count = $this->paymentService->bulk($ids, $action, ['amount' => $amount]);
|
$count = $this->paymentService->bulk($ids, $action, ['refund_amount' => $amount]);
|
||||||
|
|
||||||
if ($count > 0) {
|
if ($count > 0) {
|
||||||
$message = Utils::pluralize($action == 'refund' ? 'refunded_payment' : $action.'d_payment', $count);
|
$message = Utils::pluralize($action == 'refund' ? 'refunded_payment' : $action.'d_payment', $count);
|
||||||
|
Loading…
Reference in New Issue
Block a user