mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 18:54:37 -04:00
deprecate old getPaymentMethods()
This commit is contained in:
parent
69bc2f0183
commit
cbd6f212b5
@ -123,7 +123,7 @@ class InvoiceController extends Controller
|
|||||||
//format totals
|
//format totals
|
||||||
$formatted_total = Number::formatMoney($total, auth()->user()->client);
|
$formatted_total = Number::formatMoney($total, auth()->user()->client);
|
||||||
|
|
||||||
$payment_methods = auth()->user()->client->getPaymentMethods($total);
|
$payment_methods = auth()->user()->client->service()->getPaymentMethods($total);
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'settings' => auth()->user()->client->getMergedSettings(),
|
'settings' => auth()->user()->client->getMergedSettings(),
|
||||||
|
@ -34,7 +34,6 @@ class UpdateTaskStatusRequest extends Request
|
|||||||
$rules = [];
|
$rules = [];
|
||||||
|
|
||||||
if ($this->input('name')) {
|
if ($this->input('name')) {
|
||||||
//$rules['name'] = 'unique:task_statuses,name,'.$this->id.',id,company_id,'.$this->task_status->company_id;
|
|
||||||
$rules['name'] = Rule::unique('task_statuses')->where('company_id', auth()->user()->company()->id)->ignore($this->task_status->id);
|
$rules['name'] = Rule::unique('task_statuses')->where('company_id', auth()->user()->company()->id)->ignore($this->task_status->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -433,6 +433,7 @@ class Client extends BaseModel implements HasLocalePreference
|
|||||||
*
|
*
|
||||||
* @param float $amount The amount to be charged
|
* @param float $amount The amount to be charged
|
||||||
* @return array Array of payment labels and urls
|
* @return array Array of payment labels and urls
|
||||||
|
* @deprecated 5.0.38 - see service()->getPaymentMethods($amount);
|
||||||
*/
|
*/
|
||||||
public function getPaymentMethods($amount) :array
|
public function getPaymentMethods($amount) :array
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user