mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-03 22:50:59 +00:00 
			
		
		
		
	[FIX]return warning when processing statement files without transactions
module: account_ebics 16.0
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    "name": "EBICS banking protocol",
 | 
					    "name": "EBICS banking protocol",
 | 
				
			||||||
    "version": "16.0.1.7.0",
 | 
					    "version": "16.0.1.7.1",
 | 
				
			||||||
    "license": "LGPL-3",
 | 
					    "license": "LGPL-3",
 | 
				
			||||||
    "author": "Noviat",
 | 
					    "author": "Noviat",
 | 
				
			||||||
    "website": "https://www.noviat.com/",
 | 
					    "website": "https://www.noviat.com/",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -240,6 +240,13 @@ class EbicsFile(models.Model):
 | 
				
			|||||||
        if statements:
 | 
					        if statements:
 | 
				
			||||||
            statements.write({"import_format": file_format})
 | 
					            statements.write({"import_format": file_format})
 | 
				
			||||||
            statements = self._statement_duplicate_check(res, statements)
 | 
					            statements = self._statement_duplicate_check(res, statements)
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
 | 
					            notifications.append(
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    "type": "warning",
 | 
				
			||||||
 | 
					                    "message": _("This file doesn't contain any transaction."),
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
        st_cnt = len(statements)
 | 
					        st_cnt = len(statements)
 | 
				
			||||||
        warning_cnt = error_cnt = 0
 | 
					        warning_cnt = error_cnt = 0
 | 
				
			||||||
        if notifications:
 | 
					        if notifications:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user