updating record with zrm.zoho.getrecordbyid

updating record with zrm.zoho.getrecordbyid

Hi all, 
I'm making an script to catch some data from acount related with a Quote and update the Quote with this data, but I have an erro and I don't know how to fix it.
Please, could you herlp me?

Thanks in advance

The script is:
crmResp=zoho.crm.getRecordbyid("quotes",quoteid.tolong());
//respstr=crmResp.tostring();
if(input.dia  =  "-1")
{
diapago="Fecha factura";
}
else
{
diapago=input.dia;
}
terms="Forma de pago: " + input.metodo + " " + input.dias + " dias, dias de pago " + diapago;
crupt=zoho.crm.updateRecord("quotes",input.quoteid.tostring(),{input.terms:terms}); 

return input.terms;