1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

deprecate old getPaymentMethods()

This commit is contained in:
David Bomba 2021-01-18 13:59:06 +11:00
parent 69bc2f0183
commit cbd6f212b5
3 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class InvoiceController extends Controller
//format totals
$formatted_total = Number::formatMoney($total, auth()->user()->client);
$payment_methods = auth()->user()->client->getPaymentMethods($total);
$payment_methods = auth()->user()->client->service()->getPaymentMethods($total);
$data = [
'settings' => auth()->user()->client->getMergedSettings(),

View File

@ -34,7 +34,6 @@ class UpdateTaskStatusRequest extends Request
$rules = [];
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);
}

View File

@ -433,6 +433,7 @@ class Client extends BaseModel implements HasLocalePreference
*
* @param float $amount The amount to be charged
* @return array Array of payment labels and urls
* @deprecated 5.0.38 - see service()->getPaymentMethods($amount);
*/
public function getPaymentMethods($amount) :array
{