- Invoice listing in frontend

This commit is contained in:
Peter Papp
2021-04-21 16:53:39 +02:00
parent 5a9583be5b
commit eae212ac5d
22 changed files with 279 additions and 99 deletions

View File

@@ -70,4 +70,15 @@ function invoice_total_tax($invoice, $format = false)
}
return $total;
}
/**
* @param $value
* @param $currency
* @param string $locale
* @return string
*/
function format_to_currency($value, $currency, $locale = 'cs')
{
return Cashier::formatAmount(($value * 100), $currency, $locale);
}