Skip to content

Commit

Permalink
chore: Update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Jun 7, 2024
1 parent 98238d7 commit 4db2438
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ def get_additional_table_columns():


def get_additional_conditions(filters):
additional_conditions = ""
additional_conditions = {}

Check warning on line 42 in india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py

View check run for this annotation

Codecov / codecov/patch

india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py#L42

Added line #L42 was not covered by tests
if filters.get("company_gstin"):
additional_conditions += (
" AND `tabSales Invoice`.company_gstin = %(company_gstin)s"
)
additional_conditions.update({"company_gstin": filters.get("company_gstin")})

Check warning on line 44 in india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py

View check run for this annotation

Codecov / codecov/patch

india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py#L44

Added line #L44 was not covered by tests

return additional_conditions

0 comments on commit 4db2438

Please sign in to comment.