invoice mark paid show add payment price
This commit is contained in:
parent
14b925fbac
commit
67228694a1
@ -675,9 +675,15 @@ class Invoices extends Controller
|
||||
$paid = 0;
|
||||
|
||||
foreach ($invoice->payments as $item) {
|
||||
$amount = $item->amount;
|
||||
|
||||
if ($invoice->currency_code != $item->currency_code) {
|
||||
$item->default_currency_code = $invoice->currency_code;
|
||||
|
||||
$paid += $item->getDynamicConvertedAmount();
|
||||
$amount = $item->getDynamicConvertedAmount();
|
||||
}
|
||||
|
||||
$paid += $amount;
|
||||
}
|
||||
|
||||
$amount = $invoice->amount - $paid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user