send attachment of creating defeimente

This commit is contained in:
Peter Maquiran
2026-03-02 11:34:06 +01:00
parent 2f054bc781
commit a47e7f0c5c
3 changed files with 14 additions and 3 deletions
@@ -130,7 +130,6 @@ export class ExpedientTaskModalPage implements OnInit {
public TaskService: TaskService,
private FilePickerWebService: FilePickerWebService,
) {
this.loggeduser = SessionStore.user;
this.task = this.navParams.get('task');
@@ -178,7 +177,7 @@ export class ExpedientTaskModalPage implements OnInit {
// console.log(error)
// }
// console.log('this.document', this.document)
console.log('this.document', this.document, this.task)
@@ -442,6 +441,16 @@ export class ExpedientTaskModalPage implements OnInit {
}
break;
case '2': // Deferimento
// fix attachments
for(const doc of this.task?.Documents || []) {
docs.Attachments.push({
ApplicationId: doc.ApplicationId,
Source: 1,
SourceId: doc.DocId,
SourceName: doc.Assunto
})
}
this.postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',