CraftMyPDF can't read any number?

In trying to create a pdf for an invoice with values from Google Sheets but the module keeps giving the error:

Invalid number in parameter ‘unit_price’.

Note that this is just for one of the fields, regardless of what I input, and the same input does work on other fields. Is this something that I would need to change on CraftMyPDF? Does anyone have experience with it?

Thanks!

Hey there,

usually the invalid number error means you are sending a variable of different type. Most of the time a text string.

Try using the parseNumber() function to turn the variable in a number type.