mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed issue with default currency not being used
This commit is contained in:
parent
c4d20b252f
commit
1c0aa4ec8d
@ -542,7 +542,7 @@ class PaymentController extends \BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$invitation = Invitation::with('invoice.invoice_items', 'invoice.client.currency', 'invoice.client.account.account_gateways.gateway')->where('invitation_key', '=', $invitationKey)->firstOrFail();
|
$invitation = Invitation::with('invoice.invoice_items', 'invoice.client.currency', 'invoice.client.account.currency', 'invoice.client.account.account_gateways.gateway')->where('invitation_key', '=', $invitationKey)->firstOrFail();
|
||||||
$invoice = $invitation->invoice;
|
$invoice = $invitation->invoice;
|
||||||
$client = $invoice->client;
|
$client = $invoice->client;
|
||||||
$account = $client->account;
|
$account = $client->account;
|
||||||
|
@ -54,6 +54,11 @@ class Account extends Eloquent
|
|||||||
return $this->belongsTo('DatetimeFormat');
|
return $this->belongsTo('DatetimeFormat');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function currency()
|
||||||
|
{
|
||||||
|
return $this->belongsTo('Currency');
|
||||||
|
}
|
||||||
|
|
||||||
public function size()
|
public function size()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Size');
|
return $this->belongsTo('Size');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user