Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Jan 15, 2025
1 parent 4e1d400 commit f5667f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions erpnext/manufacturing/doctype/job_card/test_job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def test_job_card_proccess_qty_and_completed_qty(self):
production_item=item_code,
bom_no=bom_doc.name,
skip_transfer=1,
from_wip_warehouse=1,
wip_warehouse=warehouse,
source_warehouse=warehouse,
)
Expand Down
15 changes: 13 additions & 2 deletions erpnext/manufacturing/doctype/work_order/test_work_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,12 @@ def test_job_card_scrap_item(self):
bom.submit()

wo_order = make_wo_order_test_record(
item=item, company=company, planned_start_date=now(), qty=20, skip_transfer=1
item=item,
company=company,
planned_start_date=now(),
qty=20,
skip_transfer=1,
from_wip_warehouse=1,
)
job_card = frappe.db.get_value("Job Card", {"work_order": wo_order.name}, "name")
update_job_card(job_card)
Expand All @@ -1026,7 +1031,12 @@ def test_job_card_scrap_item(self):

# Partial Job Card 1 with qty 10
wo_order = make_wo_order_test_record(
item=item, company=company, planned_start_date=add_days(now(), 60), qty=20, skip_transfer=1
item=item,
company=company,
planned_start_date=add_days(now(), 60),
qty=20,
skip_transfer=1,
from_wip_warehouse=1,
)
job_card = frappe.db.get_value("Job Card", {"work_order": wo_order.name}, "name")
update_job_card(job_card, 10, 1)
Expand Down Expand Up @@ -2052,6 +2062,7 @@ def test_operating_cost_account(self):
bom_no=bom_doc.name,
qty=1,
skip_transfer=1,
from_wip_warehouse=1,
source_warehouse="_Test Warehouse - _TC",
)

Expand Down

0 comments on commit f5667f5

Please sign in to comment.