@@ -51,6 +51,7 @@ export class TransactionsImportComponent {
5151 public skipRules : boolean = false ;
5252 public treatDatesAsUtc : boolean = false ;
5353 public skipDuplicateReferenceCheck : boolean = false ;
54+ public skipValidationErrors : boolean = false ;
5455 public isLoading : boolean = false ;
5556 public stagingMode : boolean = true ;
5657
@@ -180,12 +181,20 @@ export class TransactionsImportComponent {
180181 skipRules : this . skipRules ,
181182 treatDatesAsUtc : this . treatDatesAsUtc ,
182183 skipDuplicateReferenceCheck : this . skipDuplicateReferenceCheck ,
184+ skipValidationErrors : this . skipValidationErrors ,
183185 source : this . selectedSource ,
184186 content : contents
185187 } )
186188 ) ;
187189
188- const logText = `Imported ${ result . importedCount } transaction(s).\nDuplicate transactions: ${ result . duplicateCount } .\n` ;
190+ const parts = [
191+ `Imported ${ result . importedCount } transaction(s).` ,
192+ `Duplicate transactions: ${ result . duplicateCount } .` ,
193+ ] ;
194+ if ( result . skippedCount > 0 ) {
195+ parts . push ( `Skipped (validation errors): ${ result . skippedCount } .` ) ;
196+ }
197+ const logText = parts . join ( '\n' ) ;
189198 this . textContent = logText ;
190199 this . messageService . add ( { severity : 'success' , detail : logText } ) ;
191200 } catch ( e ) {
0 commit comments