mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove redundant code path
This commit is contained in:
parent
587159c8c0
commit
a5317ff093
@ -117,13 +117,7 @@ class PaymentController extends Controller
|
|||||||
$gateway = CompanyGateway::findOrFail($request->input('company_gateway_id'));
|
$gateway = CompanyGateway::findOrFail($request->input('company_gateway_id'));
|
||||||
$payment_hash = PaymentHash::with('fee_invoice')->where('hash', $request->payment_hash)->firstOrFail();
|
$payment_hash = PaymentHash::with('fee_invoice')->where('hash', $request->payment_hash)->firstOrFail();
|
||||||
|
|
||||||
// if($payment_hash)
|
|
||||||
$invoice = $payment_hash->fee_invoice;
|
$invoice = $payment_hash->fee_invoice;
|
||||||
// else
|
|
||||||
// $invoice = Invoice::with('client')->where('id',$payment_hash->fee_invoice_id)->orderBy('id','desc')->first();
|
|
||||||
|
|
||||||
// $invoice = Invoice::with('client')->find($payment_hash->fee_invoice_id);
|
|
||||||
|
|
||||||
|
|
||||||
$client = $invoice ? $invoice->client : auth()->guard('contact')->user()->client;
|
$client = $invoice ? $invoice->client : auth()->guard('contact')->user()->client;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user