applied new features of money
package
This commit is contained in:
@ -72,9 +72,9 @@ class Content extends Component
|
||||
$totals['paid'] += $item->getAmountConvertedToDefault();
|
||||
});
|
||||
|
||||
$open_amount = money($totals['open'], default_currency(), true);
|
||||
$overdue_amount = money($totals['overdue'], default_currency(), true);
|
||||
$paid_amount = money($totals['paid'], default_currency(), true);
|
||||
$open_amount = money($totals['open']);
|
||||
$overdue_amount = money($totals['overdue']);
|
||||
$paid_amount = money($totals['paid']);
|
||||
|
||||
$summary_amounts = [
|
||||
'open_exact' => $open_amount->format(),
|
||||
|
@ -15,7 +15,7 @@ class GetPaid extends Component
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
$this->description = trans('general.amount_due') . ': ' . '<span class="font-medium">' . money($this->document->amount_due, $this->document->currency_code, true) . '</span>';
|
||||
$this->description = trans('general.amount_due') . ': ' . '<span class="font-medium">' . money($this->document->amount_due, $this->document->currency_code) . '</span>';
|
||||
|
||||
return view('components.documents.show.get-paid');
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ class MakePayment extends Component
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
$this->description = trans('general.amount_due') . ': ' . '<span class="font-medium">' . money($this->document->amount_due, $this->document->currency_code, true) . '</span>';
|
||||
$this->description = trans('general.amount_due') . ': ' . '<span class="font-medium">' . money($this->document->amount_due, $this->document->currency_code) . '</span>';
|
||||
|
||||
return view('components.documents.show.make-payment');
|
||||
}
|
||||
|
Reference in New Issue
Block a user