Skip to content

Commit

Permalink
fix: show doc issued summary in filed tab
Browse files Browse the repository at this point in the history
(cherry picked from commit 1355967)
  • Loading branch information
vorasmit authored and mergify[bot] committed Sep 16, 2024
1 parent 4311083 commit b548be8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions india_compliance/gst_india/utils/gstr_1/gstr_1_json_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1821,6 +1821,14 @@ def convert_to_internal_data_format(self, input_data):

return {"summary": output}

def format_data(self, data, default_data=None, for_gov=False):
response = super().format_data(data, default_data, for_gov)

if data.get("sec_nm") == "DOC_ISSUE":
response["no_of_records"] = data.get("net_doc_issued", 0)

return response

def format_subsection_data(self, section, subsection_data):
subsection = subsection_data.get("typ") or subsection_data.get("sec_nm")
formatted_data = self.format_data(subsection_data)
Expand Down Expand Up @@ -1935,6 +1943,7 @@ def summarize_retsum_data(input_data):

summarized_data = []
total_values_keys = [
"no_of_records",
"total_igst_amount",
"total_cgst_amount",
"total_sgst_amount",
Expand Down

0 comments on commit b548be8

Please sign in to comment.