87
Views
2
Comments
Solved
how do you add two different values and not concatenate them?
Question

I have a subtotal  value and a sales tax value that I need to add together for the total amount due, but it concatenates the values and doesn't add them together. 

SyntaxEditor Code Snippet

 FormatCurrency(GetInvoiceById.List.Current.Invoice.Subtotal,"$",2,".","" +GetInvoiceById.List.Current.Invoice.TotalTax)

how do I get the new total amount due to be those two values combined?

2018-06-11 09-12-53
Rodrigo Coutinho
Staff
Solution

Does this work?

FormatCurrency(GetInvoiceById.List.Current.Invoice.Subtotal + GetInvoiceById.List.Current.Invoice.TotalTax,"$",2,".",",")

Cheers,
R

UserImage.jpg
Jon Mounteer

Rodrigo Coutinho wrote:

Does this work?

FormatCurrency(GetInvoiceById.List.Current.Invoice.Subtotal + GetInvoiceById.List.Current.Invoice.TotalTax,"$",2,".",",")

Cheers,
R

Yes that did what I needed! thank you!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.