Getting Just Numbers out of invoice variables?

Hello there, I’m hoping there is something I can do with code so I can just get the number out of a variable.
Example like this:
$amount = $175.00
But I’m hoping to get just the “175” number instead, deleting the “$” and “.00” so I can add the number after a URL link.

Thanks!

Sorry, I don’t understand…

@MaxMaddox Did you found the right variable?

@Hillel Coren:
What we are looking for is a different variable that only outputs the amount number WITHOUT Currency Symbol.

it needed to generate a link such as:
at the moment using $amount it generates:
http://pay.me/accountname?amount=$100 (Where $100 is printed by variable $amount)

But we need:
http://pay.me/accountname?amount=100,00 (Where 100 is printed by a variable without a Currency symbol)

So I think the question might be how is $amount build
(Exmp. $invoicetotal+$currency, where we need the used name for $invoicetotal)

What we are looking for is a different variable that only outputs the amount number WITHOUT Currency Symbol.

it needed to generate a link such as:
at the moment using $amount it generates:
http://pay.me/accountname?amount=$100 (Where $100 is printed by variable $amount)

But we need:
http://pay.me/accountname?amount=100,00 (Where 100 is printed by a variable without a Currency symbol)

So I think the question might be how is $amount build
(Exmp. $invoicetotal+$currency, where we need the used name for $invoicetotal)

Try $invoice.balanceAmount

This variable $invoice.balanceAmount:
Outputs : http://pay.me/accountname?amount=0001.balanceAmount (0001 is the invoice number)

Had an idea so i changed the variable to $balanceAmount
Result : http://pay.me/accountname?amount=$100,00Amount

The currency sign comes back again, is there a list of ALL variables somewhere?
I downloaded the selfhosting package but it are to much files to go thru.
If I see the list I might find the correct variable I need.

Try clicking ‘Help’ on the customize design page.

https://github.com/invoiceninja/invoiceninja/blob/master/resources/assets/js/pdf.pdfmake.js#L255

@Hilel Coren Thanks for your quick responses, appreciated!

The Variable is not listen under the Help option, it needs to be somewhere where the system decides
what currency to use BEFORE making it a variable, I am not (yet) using different currencies,
but I read that it is possible to make different templates with different currencies,
so somewhere there is a variable with only the amount/balance before the currency is attached to it.

I basically only wanted to ad it to the email template, never thought to put it in the PDF (good idea),
I’ll check the link and see if it makes any sense to me…

Thanks for the help until now…

This issue seems similar:

https://www.invoiceninja.com/forums/topic/epc-qr-code/

Yes it seems it is almost the same, working with just the amount, but somehow it is not working for me,
The variable doesn’t show me an amount but an invoice number, this is in the email template editor.

I went to a custom invoice and try to paste it in different locations and it din’t out put anything,
for now I ended up to just make the invoice in word and send the link by whatsapp.

Or might something wrong with my install something corrupt?

Sorry, the variable I suggested would only work in the PDF not in email templates.