fix: removed field not present in v15
This commit is contained in:
@@ -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",
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user