Skip to content

Commit 4a8da7b

Browse files
committed
Issue #586
Esposto lo stato di una riconciliazione nelle API-Backoffice
1 parent 5bdb9a9 commit 4a8da7b

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

wars/web-console/src/main/angular/console/src/app/elements/detail-view/views/incassi-view/incassi-view.component.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ import { Standard } from '../../../../classes/view/standard';
1212
import { StandardCollapse } from '../../../../classes/view/standard-collapse';
1313
import { NewStandardCollapse } from '../../../../classes/view/new-standard-collapse';
1414
import { IExport } from '../../../../classes/interfaces/IExport';
15-
import { isNullOrUndefined } from 'util';
1615

1716
import * as moment from 'moment';
1817

19-
declare let GovRiconciliazioniConfig: any;
20-
2118
@Component({
2219
selector: 'link-incassi-view',
2320
templateUrl: './incassi-view.component.html',
@@ -94,6 +91,12 @@ export class IncassiViewComponent implements IModalDialog, IExport, AfterViewIni
9491
if (this.json.iuv) {
9592
this.info.extraInfo.push({ label: Voce.IUV + ': ', value: this.json.iuv });
9693
}
94+
if (this.json.stato) {
95+
this.info.extraInfo.push({ label: Voce.STATO + ': ', value: UtilService.STATI_INCASSO[this.json.stato] });
96+
}
97+
if (this.json.descrizioneStato) {
98+
this.info.extraInfo.push({ label: Voce.DESCRIZIONE_STATO + ': ', value: this.json.descrizioneStato });
99+
}
97100

98101
//Riscossioni
99102
this.riscossioni = this.json.riscossioni.map(function(item) {

wars/web-console/src/main/angular/console/src/app/elements/list-view/side-list.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,9 @@ export class SideListComponent implements OnInit, OnDestroy, IExport {
661661
_stdTC = new TwoCols();
662662
_stdTC.generalTemplate = true;
663663
_stdTC.gtTextUL = item.idFlusso ? `${item.idFlusso}` : `${item.iuv}`;
664-
_stdTC.gtTextBL = '';
664+
_stdTC.gtTextBL = item.data?moment(item.data).format('DD/MM/YYYY'):'';
665665
_stdTC.gtTextUR = this.us.currencyFormat(item.importo);
666-
_stdTC.gtTextBR = item.data?moment(item.data).format('DD/MM/YYYY'):'';
666+
_stdTC.gtTextBR = UtilService.STATI_INCASSO[item.stato];
667667
_std = _stdTC;
668668
break;
669669
case UtilService.URL_GIORNALE_EVENTI:

wars/web-console/src/main/angular/console/src/app/services/form.service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ export class FormService {
9191

9292
//Incassi
9393
public static FORM_SCT: string = 'Identificativo PSP del riversamento';
94+
public static FORM_STATO_INCASSI: string = 'Stato';
9495
}

wars/web-console/src/main/angular/console/src/app/services/util.service.ts

+15
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ export class UtilService {
171171
SCARTATO: 'Scartato'
172172
};
173173

174+
//STATI INCASSI
175+
public static STATI_INCASSO: any = {
176+
ACQUISITO: 'Acquisita',
177+
IN_ELABORAZIONE: 'In Elaborazione',
178+
ERRORE: 'Errore'
179+
};
180+
174181
//LIVELLI SEVERITA
175182
public static LIVELLI_SEVERITA: any = {
176183
2: 'Warning',
@@ -1859,6 +1866,8 @@ export class UtilService {
18591866
new FormInput({ id: 'idDominio', label: FormService.FORM_ENTE_CREDITORE, type: UtilService.FILTERABLE,
18601867
promise: { async: true, url: UtilService.RootByTOA() + UtilService.URL_DOMINI, mapFct: this.asyncElencoDominiPendenza.bind(this),
18611868
eventType: 'idDominio-async-load' } }, this.http),
1869+
new FormInput({ id: 'stato', label: FormService.FORM_STATO_INCASSI, noOptionLabel: 'Tutti', placeholder: FormService.FORM_PH_SELECT,
1870+
type: UtilService.SELECT, showTooltip: false, values: this.statiIncasso() }),
18621871
new FormInput({ id: 'dataDa', label: FormService.FORM_DATA_INIZIO, type: UtilService.DATE_PICKER, value: _defaulFiltertData }),
18631872
new FormInput({ id: 'dataA', label: FormService.FORM_DATA_FINE, type: UtilService.DATE_PICKER, defaultTime: '23:59' })
18641873
];
@@ -2092,6 +2101,12 @@ export class UtilService {
20922101
});
20932102
}
20942103

2104+
statiIncasso(): any[] {
2105+
return Object.keys(UtilService.STATI_INCASSO).map((key) => {
2106+
return { label: UtilService.STATI_INCASSO[key], value: key };
2107+
});
2108+
}
2109+
20952110
// Config Riconciliazioni
20962111

20972112
getConfigRiconciliazioni() {

wars/web-console/src/main/angular/console/src/app/services/voce.service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class Voce {
8383
public static DEFINIZIONI: string = 'Definizioni';
8484
public static DENOMINAZIONE: string = 'Denominazione';
8585
public static DESCRIZIONE: string = 'Descrizione';
86+
public static DESCRIZIONE_STATO: string = 'Descrizione stato';
8687
public static DETTAGLIO_ESITO: string = 'Dettaglio esito';
8788
public static DETTAGLIO_PENDENZA_CUSTOM: string = 'Personalizzazione dettaglio pendenza';
8889
public static DIREZIONE: string = 'Direzione';

0 commit comments

Comments
 (0)