Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
@@ -650,11 +650,7 @@ def get_required_items(self):
)
)

if (
self.get("operation") == d.operation
or self.operation_row_id == d.operation_row_id
or self.is_corrective_job_card
):
if self.get("operation") == d.operation or self.is_corrective_job_card:
self.append(
"items",
{
2 changes: 2 additions & 0 deletions erpnext/manufacturing/doctype/job_card/test_job_card.py
Original file line number Diff line number Diff line change
@@ -451,6 +451,7 @@ def test_if_corrective_jc_ops_cost_is_added_to_manufacture_stock_entry(self):
job_card.name, operation=corrective_action.name, for_operation=job_card.operation
)
corrective_job_card.hour_rate = 100
corrective_job_card.update({"hour_rate": 100})
corrective_job_card.insert()
corrective_job_card.append(
"time_logs",
@@ -460,6 +461,7 @@ def test_if_corrective_jc_ops_cost_is_added_to_manufacture_stock_entry(self):
"completed_qty": 4,
},
)
print(corrective_job_card.as_dict())
corrective_job_card.submit()
wo.reload()

0 comments on commit 1be1981

Please sign in to comment.