Skip to content

Commit

Permalink
fix: add description in query
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninad1306 committed Oct 2, 2024
1 parent ae960b4 commit 9544f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion india_compliance/gst_india/utils/itc_04/itc_04_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def get_base_query_table_4(self, doc, doc_item):
doc.is_return,
IfNull(doc.place_of_supply, "").as_("place_of_supply"),
doc.base_grand_total.as_("invoice_total"),
IfNull(doc_item.description, "").as_("description"),
IfNull(doc_item.gst_treatment, "Not Defined").as_("gst_treatment"),
(doc_item.cgst_rate + doc_item.sgst_rate + doc_item.igst_rate).as_(
"gst_rate"
Expand Down Expand Up @@ -142,9 +143,9 @@ def get_base_query_table_5A(self, doc, doc_item, ref_doc):
.select(
IfNull(doc_item.item_code, doc_item.item_name).as_("item_code"),
doc_item.qty,
IfNull(doc_item.description, "").as_("description"),
doc_item.gst_hsn_code,
IfNull(doc.supplier, "").as_("supplier"),
IfNull(doc.name, "").as_("invoice_no"),
doc.posting_date,
doc.is_return,
IfNull(doc.place_of_supply, "").as_("place_of_supply"),
Expand Down
4 changes: 2 additions & 2 deletions india_compliance/gst_india/utils/itc_04/itc_04_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def create_item(invoice, uom):
"cess_amount": invoice.total_cess_amount,
"uom": f"{uom}-{UOM_MAP[uom]}",
"qty": invoice.qty,
"desc": "",
"desc": invoice.description,
"goods_type": "7b",
}

Expand Down Expand Up @@ -129,7 +129,7 @@ def create_item(invoice, uom, jw_challan_date, challan_date):
"nature_of_job": "Work",
"uom": f"{uom}-{UOM_MAP[uom]}",
"qty": invoice.qty,
"desc": "",
"desc": invoice.description,
}

res = {}
Expand Down

0 comments on commit 9544f64

Please sign in to comment.