mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 13:42:10 +01:00
fix: removed field not present in v15
This commit is contained in:
@@ -650,11 +650,7 @@ class JobCard(Document):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if self.get("operation") == d.operation or self.is_corrective_job_card:
|
||||||
self.get("operation") == d.operation
|
|
||||||
or self.operation_row_id == d.operation_row_id
|
|
||||||
or self.is_corrective_job_card
|
|
||||||
):
|
|
||||||
self.append(
|
self.append(
|
||||||
"items",
|
"items",
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -451,6 +451,7 @@ class TestJobCard(FrappeTestCase):
|
|||||||
job_card.name, operation=corrective_action.name, for_operation=job_card.operation
|
job_card.name, operation=corrective_action.name, for_operation=job_card.operation
|
||||||
)
|
)
|
||||||
corrective_job_card.hour_rate = 100
|
corrective_job_card.hour_rate = 100
|
||||||
|
corrective_job_card.update({"hour_rate": 100})
|
||||||
corrective_job_card.insert()
|
corrective_job_card.insert()
|
||||||
corrective_job_card.append(
|
corrective_job_card.append(
|
||||||
"time_logs",
|
"time_logs",
|
||||||
@@ -460,6 +461,7 @@ class TestJobCard(FrappeTestCase):
|
|||||||
"completed_qty": 4,
|
"completed_qty": 4,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
print(corrective_job_card.as_dict())
|
||||||
corrective_job_card.submit()
|
corrective_job_card.submit()
|
||||||
wo.reload()
|
wo.reload()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user