Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calIGV(Id) {
- var record = app.models.Prueba.getRecord(Id);
- var igv = 0.0;
- //record.IGV = igv;
- igv += (record.Sueldo + record.Sueldo_2) * 0.18;
- record.Nombre_Apellidos = record.Nombre + ' ' + record.Apellidos;
- record.IGV = igv;
- app.saveRecords([record]);
- }
- function actualizarIGV() {
- console.log('Este es el ID: ' + Session.Id);
- var key = app.datasources.Prueba.item._key;
- google.script.run.withSuccessHandler(function(){
- app.datasources.Prueba.load();
- }).calIGV(key);
- }
Add Comment
Please, Sign In to add comment