close #1963 Fixed: Invoice different currency paid. wrong calculate paid amount
This commit is contained in:
parent
e62504a546
commit
cc33df2fe2
@ -269,7 +269,7 @@ class Document extends Model
|
|||||||
$reconciled = $reconciled_amount = 0;
|
$reconciled = $reconciled_amount = 0;
|
||||||
|
|
||||||
$code = $this->currency_code;
|
$code = $this->currency_code;
|
||||||
$rate = config('money.' . $code . '.rate');
|
$rate = $this->currency_rate;
|
||||||
$precision = config('money.' . $code . '.precision');
|
$precision = config('money.' . $code . '.precision');
|
||||||
|
|
||||||
if ($this->transactions->count()) {
|
if ($this->transactions->count()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user