Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Updated Test Case #3084

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def make_service_items():
def make_subcontracted_items():
sub_contracted_items = {
"Subcontracted Item SA1": {},
"Subcontracted Item SA2": {},
}

for item, properties in sub_contracted_items.items():
Expand All @@ -58,6 +59,9 @@ def make_boms():
"Subcontracted SRM Item 1",
"Subcontracted SRM Item 2",
],
"Subcontracted Item SA2": [
"Subcontracted SRM Item 1",
],
}

for item_code, raw_materials in boms.items():
Expand Down
22 changes: 9 additions & 13 deletions india_compliance/gst_india/utils/itc_04/test_itc_04_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
)

from india_compliance.gst_india.overrides.test_subcontracting_transaction import (
SERVICE_ITEM,
create_purchase_order,
create_subcontracting_data,
make_stock_transfer_entry,
)
from india_compliance.gst_india.utils.itc_04.itc_04_export import download_itc_04_json

SERVICE_ITEM = {
"item_code": "Subcontracted Service Item 1",
"qty": 10,
"rate": 100,
"fg_item": "Subcontracted Item SA2",
"fg_item_qty": 10,
}

response = {
"data": {
"gstin": "24AAQCA8719H1ZC",
Expand All @@ -31,7 +38,7 @@
"nat_jw": "Job Work",
"uqc": "NOS",
"qty": 10.0,
"desc": "Subcontracted Item SA1",
"desc": "Subcontracted Item SA2",
}
],
"flag": "N",
Expand All @@ -52,17 +59,6 @@
"tx_s": 0.0,
"tx_cs": 0.0,
},
{
"uqc": "NOS",
"qty": 10.0,
"desc": "Subcontracted SRM Item 2",
"txval": 0.0,
"goods_ty": "8b",
"tx_i": 0.0,
"tx_c": 0.0,
"tx_s": 0.0,
"tx_cs": 0.0,
},
],
"chnum": "MAT-STE-00001",
"chdt": "10-01-2025",
Expand Down
Loading