mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 02:44:35 -04:00
Show the message if invoice is unpayable
This commit is contained in:
parent
278117bebf
commit
e1df465883
@ -77,7 +77,9 @@ class InvoiceController extends Controller
|
|||||||
return $this->downloadInvoicePDF((array) $transformed_ids);
|
return $this->downloadInvoicePDF((array) $transformed_ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->back();
|
return redirect()
|
||||||
|
->back()
|
||||||
|
->with('message', ctrans('texts.no_action_provided'));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function makePayment(array $ids)
|
private function makePayment(array $ids)
|
||||||
@ -93,7 +95,8 @@ class InvoiceController extends Controller
|
|||||||
});
|
});
|
||||||
|
|
||||||
if ($invoices->count() == 0) {
|
if ($invoices->count() == 0) {
|
||||||
return back()->with(['warning' => 'No payable invoices selected']);
|
return back()
|
||||||
|
->with('message', ctrans('texts.no_payable_invoices_selected'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$invoices->map(function ($invoice) {
|
$invoices->map(function ($invoice) {
|
||||||
|
@ -3363,4 +3363,7 @@ return [
|
|||||||
|
|
||||||
'endless' => 'Endless',
|
'endless' => 'Endless',
|
||||||
'minimum_payment' => 'Minimum Payment',
|
'minimum_payment' => 'Minimum Payment',
|
||||||
|
|
||||||
|
'no_action_provided' => 'No action provided. If you believe this is wrong, please contact the support.',
|
||||||
|
'no_payable_invoices_selected' => 'No payable invoices selected. Make sure you are not trying to pay draft invoice or invoice with zero balance due.',
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user