1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00

Fix curreny formating in email preview

This commit is contained in:
Hillel Coren 2016-12-19 11:25:09 +02:00
parent b0cfcf7748
commit 38c07edc71

View File

@ -190,6 +190,7 @@
var entityTypes = ['invoice', 'quote', 'payment', 'reminder1', 'reminder2', 'reminder3']; var entityTypes = ['invoice', 'quote', 'payment', 'reminder1', 'reminder2', 'reminder3'];
var stringTypes = ['subject', 'template']; var stringTypes = ['subject', 'template'];
var templates = {!! json_encode($defaultTemplates) !!}; var templates = {!! json_encode($defaultTemplates) !!};
var account = {!! Auth::user()->account !!};
function refreshPreview() { function refreshPreview() {
for (var i=0; i<entityTypes.length; i++) { for (var i=0; i<entityTypes.length; i++) {
@ -277,7 +278,7 @@
"{{ $account->formatDate($account->getDateTime()) }}", "{{ $account->formatDate($account->getDateTime()) }}",
"{{ $account->formatDate($account->getDateTime()) }}", "{{ $account->formatDate($account->getDateTime()) }}",
"Client Name", "Client Name",
formatMoney(100), formatMoneyAccount(100, account),
"Contact Name", "Contact Name",
"First Name", "First Name",
"0001", "0001",