fix: removed field not present in v15

This commit is contained in:
Mihir Kandoi
2025-01-28 09:26:14 +05:30
parent b59d253d93
commit 1be19819fb
2 changed files with 3 additions and 5 deletions

View File

@@ -650,11 +650,7 @@ class JobCard(Document):
)
)
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",
{

View File

@@ -451,6 +451,7 @@ class TestJobCard(FrappeTestCase):
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 @@ class TestJobCard(FrappeTestCase):
"completed_qty": 4,
},
)
print(corrective_job_card.as_dict())
corrective_job_card.submit()
wo.reload()