Merge pull request #21986 from deepeshgarg007/tds_computation_summary

fix: TDS computation summary report
This commit is contained in:
Deepesh Garg 2020-05-27 22:49:42 +05:30 committed by GitHub
commit 6fe3a24c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ def get_advance_vouchers(suppliers, fiscal_year=None, company=None, from_date=No
if company:
condition += "and company =%s" % (company)
if from_date and to_date:
condition += "and posting_date between %s and %s" % (company, from_date, to_date)
condition += "and posting_date between %s and %s" % (from_date, to_date)
## Appending the same supplier again if length of suppliers list is 1
## since tuple of single element list contains None, For example ('Test Supplier 1', )