Skip to content

Commit

Permalink
Issue #466
Browse files Browse the repository at this point in the history
Aggiornamento per i dati dei pagamenti gestiti con le nuove API pagoPA
- Nei "Tentativi di pagamento" ora compare correttamente il nome del PSP
- Nell'esportazione ora viene inclusa correttamente la stampa della ricevuta
  • Loading branch information
atatarelli committed Mar 27, 2022
1 parent 0003fcc commit 5c496b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ export class PendenzeViewComponent implements IModalDialog, IExport, OnInit {
stStrings.push(Voce.IUV+': '+item.rpt.data.creditorReferenceId);
}
}
if (item.rt && item.rt.receipt) {
_istituto = (item.rt.receipt.PSPCompanyName || '');
if (item.rt) {
_istituto = (item.rt.PSPCompanyName || '');
}
stStrings.push(Voce.DATA+': '+item.dataRichiestaPagamento?moment(item.dataRichiestaPagamento).format('DD/MM/YYYY [ore] HH:mm:ss'):Voce.NON_PRESENTE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ export class UtilService {
}

public static ExportMapLoopCfg(item: any): any {
console.log('ExportMapLoopCfg', item);
const ref: any = { idd: '', iuv: '', ccp: '', iddRT: '', iuvRT: '', ccpRT: '' };
const versione620: boolean = !!(item.rpt && item.rpt.versioneOggetto && item.rpt.versioneOggetto === '6.2.0');
if (versione620) {
Expand Down Expand Up @@ -795,6 +796,19 @@ export class UtilService {
ref.ccp = item.rt.receipt.receiptId;
}
}
// API pagoPA v2
if (item.rt.fiscalCode) {
ref.idd = item.rt.fiscalCode;
ref.iddRT = item.rt.fiscalCode;
}
if (item.rt.creditorReferenceId) {
ref.iuv = item.rt.creditorReferenceId;
ref.iuvRT = item.rt.creditorReferenceId;
}
if (item.rt.receiptId) {
ref.ccp = item.rt.receiptId;
ref.ccpRT = item.rt.receiptId;
}
}
}
return ref;
Expand Down

0 comments on commit 5c496b3

Please sign in to comment.