style: semgrep issues

This commit is contained in:
Rohan Bansal 2021-05-26 15:18:10 +05:30
parent 1cdf5a0dba
commit 1e3a3b27c6

View File

@ -225,7 +225,7 @@ class AccountsController(TransactionBase):
def validate_date_with_fiscal_year(self):
if self.meta.get_field("fiscal_year"):
date_field = ""
date_field = None
if self.meta.get_field("posting_date"):
date_field = "posting_date"
elif self.meta.get_field("transaction_date"):