Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer

This commit is contained in:
Peter Maquiran
2021-06-08 11:24:24 +01:00
21 changed files with 143 additions and 190 deletions
@@ -227,20 +227,19 @@ export class ExpedienteDetailPage implements OnInit {
await modal.present();
modal.onDidDismiss().then( async (res)=>{
console.log(res['data']);
console.log(body);
if(body == 'descartar'){
if(res['data']== 'Yes'){
let otherbody = {
"serialNumber": this.task.SerialNumber,
"action": "Passivo",
"ActionTypeId": 94,
"ActionTypeId": 99999877,
"dataFields": {
"Note": "",
}
}
try {
try {
await this.processes.CompleteTask(otherbody).toPromise()
this.successMessage()
} catch (error) {
@@ -255,7 +254,7 @@ export class ExpedienteDetailPage implements OnInit {
else{
if(res['data']== 'Yes'){
try {
await this.processes.CompleteTask(body).toPromise()
//await this.processes.CompleteTask(body).toPromise()
this.successMessage()
} catch (error) {
this.badRequest()